mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
1e8f612206
Alternate CC and CXX
21 lines
522 B
Bash
21 lines
522 B
Bash
|
|
# Zig as C & CXX compiler (clang wrapper)
|
|
export ZCC="zig cc -fno-sanitize=all -lc"
|
|
export ZCXX="zig c++ -fno-sanitize=all -lc -lc++"
|
|
|
|
# Zig build-system project
|
|
alias zbuild="zig build"
|
|
alias zbuildrun="zig build run"
|
|
alias zbuildtest="zig build test"
|
|
alias zbuildexe="zig init-exe"
|
|
alias zbuildlib="zig init-lib"
|
|
|
|
# Other Commands
|
|
alias zfmt="zig fmt"
|
|
alias zlint="zig ast-check"
|
|
alias c2zig="zig translate-c"
|
|
alias ztest="zig test"
|
|
alias zrun="zig run"
|
|
alias zversion="zig version"
|
|
|
|
alias zfind='find . -name "*.zig"'
|