Add support for zig cc as C compiler. (#13757)

This commit is contained in:
Hessam Mehr 2020-04-08 14:24:14 +01:00 • committed by GitHub
commit bff742cd8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -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(),