fixes for the Intel C compiler on Windows
This commit is contained in:
parent
b5d34242ca
commit
ec95d54a67
2 changed files with 10 additions and 8 deletions
|
|
@ -16,7 +16,7 @@ import
|
||||||
type
|
type
|
||||||
TSystemCC* = enum
|
TSystemCC* = enum
|
||||||
ccNone, ccGcc, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc,
|
ccNone, ccGcc, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc,
|
||||||
ccTcc, ccPcc, ccUcc, ccIcc, ccGpp
|
ccTcc, ccPcc, ccUcc, ccIcl, ccGpp
|
||||||
TInfoCCProp* = enum # properties of the C compiler:
|
TInfoCCProp* = enum # properties of the C compiler:
|
||||||
hasSwitchRange, # CC allows ranges in switch statements (GNU C)
|
hasSwitchRange, # CC allows ranges in switch statements (GNU C)
|
||||||
hasComputedGoto, # CC has computed goto (GNU C extension)
|
hasComputedGoto, # CC has computed goto (GNU C extension)
|
||||||
|
|
@ -121,16 +121,16 @@ compiler vcc:
|
||||||
asmStmtFrmt: "__asm{$n$1$n}$n",
|
asmStmtFrmt: "__asm{$n$1$n}$n",
|
||||||
props: {hasCpp, hasAssume})
|
props: {hasCpp, hasAssume})
|
||||||
|
|
||||||
compiler icc:
|
compiler icl:
|
||||||
# Intel compilers try to imitate the native ones (gcc and msvc)
|
# Intel compilers try to imitate the native ones (gcc and msvc)
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
result = vcc()
|
result = vcc()
|
||||||
else:
|
else:
|
||||||
result = gcc()
|
result = gcc()
|
||||||
|
|
||||||
result.name = "icc"
|
result.name = "icl"
|
||||||
result.compilerExe = "icc"
|
result.compilerExe = "icl"
|
||||||
result.linkerExe = "icc"
|
result.linkerExe = "icl"
|
||||||
|
|
||||||
compiler lcc:
|
compiler lcc:
|
||||||
result = (
|
result = (
|
||||||
|
|
@ -293,7 +293,7 @@ const
|
||||||
tcc(),
|
tcc(),
|
||||||
pcc(),
|
pcc(),
|
||||||
ucc(),
|
ucc(),
|
||||||
icc(),
|
icl(),
|
||||||
gpp()]
|
gpp()]
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,10 @@ hint[LineTooLong]=off
|
||||||
@end
|
@end
|
||||||
|
|
||||||
# Configuration for the Intel C/C++ compiler:
|
# Configuration for the Intel C/C++ compiler:
|
||||||
icc.options.always = "-cxxlib"
|
@if windows:
|
||||||
icc.options.linker = "-cxxlib"
|
icl.options.speed = "/Ox /arch:SSE2"
|
||||||
|
icl.options.always = "/nologo"
|
||||||
|
@end
|
||||||
|
|
||||||
# Configuration for the GNU C/C++ compiler:
|
# Configuration for the GNU C/C++ compiler:
|
||||||
@if windows:
|
@if windows:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue