Add support for clang-cl (#9977)
This commit is contained in:
parent
2d404a5a24
commit
642ce799ec
3 changed files with 15 additions and 2 deletions
|
|
@ -153,6 +153,13 @@ compiler vcc:
|
||||||
structStmtFmt: "$3$n$1 $2",
|
structStmtFmt: "$3$n$1 $2",
|
||||||
props: {hasCpp, hasAssume, hasDeclspec})
|
props: {hasCpp, hasAssume, hasDeclspec})
|
||||||
|
|
||||||
|
compiler clangcl:
|
||||||
|
result = vcc()
|
||||||
|
result.name = "clang_cl"
|
||||||
|
result.compilerExe = "clang-cl"
|
||||||
|
result.cppCompiler = "clang-cl"
|
||||||
|
result.linkerExe = "clang-cl"
|
||||||
|
|
||||||
# Intel C/C++ Compiler
|
# Intel C/C++ Compiler
|
||||||
compiler icl:
|
compiler icl:
|
||||||
result = vcc()
|
result = vcc()
|
||||||
|
|
@ -353,7 +360,8 @@ const
|
||||||
pcc(),
|
pcc(),
|
||||||
ucc(),
|
ucc(),
|
||||||
icl(),
|
icl(),
|
||||||
icc()]
|
icc(),
|
||||||
|
clangcl()]
|
||||||
|
|
||||||
hExt* = ".h"
|
hExt* = ".h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ type
|
||||||
|
|
||||||
TSystemCC* = enum
|
TSystemCC* = enum
|
||||||
ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc,
|
ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc,
|
||||||
ccTcc, ccPcc, ccUcc, ccIcl, ccIcc
|
ccTcc, ccPcc, ccUcc, ccIcl, ccIcc, ccClangCl
|
||||||
|
|
||||||
CfileFlag* {.pure.} = enum
|
CfileFlag* {.pure.} = enum
|
||||||
Cached, ## no need to recompile this time
|
Cached, ## no need to recompile this time
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,11 @@ clang.options.speed = "-O3"
|
||||||
clang.options.size = "-Os"
|
clang.options.size = "-Os"
|
||||||
|
|
||||||
@if windows:
|
@if windows:
|
||||||
|
clang_cl.cpp.options.always %= "${clang_cl.options.always} /EHsc"
|
||||||
|
@if not release:
|
||||||
|
clang_cl.options.linker = "/Z7"
|
||||||
|
clang_cl.cpp.options.linker = "/Z7"
|
||||||
|
@end
|
||||||
clang.options.debug = "-g -gcodeview"
|
clang.options.debug = "-g -gcodeview"
|
||||||
clang.cpp.options.debug = "-g -gcodeview"
|
clang.cpp.options.debug = "-g -gcodeview"
|
||||||
@if not release:
|
@if not release:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue