Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malisipi/vzcc
Zig CC for V
https://github.com/malisipi/vzcc
Last synced: 8 days ago
JSON representation
Zig CC for V
- Host: GitHub
- URL: https://github.com/malisipi/vzcc
- Owner: malisipi
- License: mpl-2.0
- Created: 2023-04-11T18:36:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-18T10:50:21.000Z (over 1 year ago)
- Last Synced: 2024-08-04T01:03:06.747Z (3 months ago)
- Language: V
- Size: 8.79 KB
- Stars: 25
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - vzcc - A CLI cross-compiling tool based on Zig CC for V. (Applications / Command-line)
README
# Zig CC for V
> A cross-compiler for V
## For Linux
0. Install V and Zig
1. Install this application
```bash
v install malisipi.vzcc
```
or
```bash
git clone https://github.com/malisipi/vzcc
mkdir ~/.vmodules/malisipi/
mv vzcc ~/.vmodules/malisipi/vzcc
```2. Compile this application
```bash
v ~/.vmodules/malisipi/vzcc
```3. Allow to run & Symlink zig_cc file
```bash
sudo chmod +x ~/.vmodules/malisipi/vzcc/src/zig_cc
sudo ln -sr ~/.vmodules/malisipi/vzcc/src/zig_cc /bin/zig_cc
```4. Symlink this application (Optional)
```bash
sudo ln -sr ~/.vmodules/malisipi/vzcc/vzcc /bin/vzcc
```5. You're ready to go
## How To Use?
```basg
vzcc [input_file] [output_file]
===> a.v a.out
vzcc [input_file] [target_os] [output_file]
===> a.v windows a.exe
vzcc [input_file] [target_arch] [target_os] [output_file]
===> a.v x86_64 windows a.exe
vzcc [input_file] [target_arch] [target_os] [output_file] [target_flags]
===> a.v x86_64 windows a.exe -gnu[target_arch]: If undefined, your os arch will be used as target
[target_os]: If undefined, your os will be used as target
[target_flags]: "" is default
```