Add support for zig cc as C compiler. (#13757)
This commit is contained in:
parent
350ee0308a
commit
bff742cd8b
2 changed files with 12 additions and 1 deletions
|
|
@ -138,6 +138,16 @@ compiler clang:
|
|||
result.compilerExe = "clang"
|
||||
result.cppCompiler = "clang++"
|
||||
|
||||
# Zig cc (Clang) C/C++ Compiler
|
||||
compiler zig:
|
||||
result = clang() # Uses settings from llvmGcc
|
||||
|
||||
result.name = "zig"
|
||||
result.compilerExe = "zig"
|
||||
result.cppCompiler = "zig"
|
||||
result.compileTmpl = "cc " & result.compileTmpl
|
||||
result.linkTmpl = "cc " & result.linkTmpl
|
||||
|
||||
# Microsoft Visual C/C++ Compiler
|
||||
compiler vcc:
|
||||
result = (
|
||||
|
|
@ -375,6 +385,7 @@ const
|
|||
nintendoSwitchGCC(),
|
||||
llvmGcc(),
|
||||
clang(),
|
||||
zig(),
|
||||
lcc(),
|
||||
bcc(),
|
||||
dmc(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue