support for clang

This commit is contained in:
Araq 2011-03-24 01:26:52 +01:00
commit 220dd54acf
2 changed files with 23 additions and 2 deletions

View file

@ -60,6 +60,7 @@ hint[LineTooLong]=off
@if unix:
@if not bsd:
gcc.options.linker = "-ldl"
clang.options.linker = "-ldl"
tcc.options.linker = "-ldl"
@end
@end
@ -96,6 +97,12 @@ llvm_gcc.options.always = "-w"
llvm_gcc.options.speed = "-O2"
llvm_gcc.options.size = "-Os"
# Configuration for the LLVM CLang compiler:
clang.options.debug = "-g"
clang.options.always = "-w"
clang.options.speed = "-O3"
clang.options.size = "-Os"
# Configuration for the Visual C/C++ compiler:
vcc.options.linker = r"/F33554432" # set the stack size to 8 MB
vcc.options.debug = "/RTC1 /ZI"