cleanup of the Intel compiler handling; refs #6488

This commit is contained in:
Araq 2017-12-15 19:12:39 +01:00
commit 7a711cc8e1

View file

@ -21,7 +21,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, ccIcl ccTcc, ccPcc, ccUcc, ccIcl, ccIcc
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)
@ -135,13 +135,13 @@ compiler vcc:
# Intel C/C++ Compiler # Intel C/C++ Compiler
compiler icl: compiler icl:
# Intel compilers try to imitate the native ones (gcc and msvc)
when defined(windows):
result = vcc() result = vcc()
result.name = "icl" result.name = "icl"
result.compilerExe = "icl" result.compilerExe = "icl"
result.linkerExe = "icl" result.linkerExe = "icl"
else:
# Intel compilers try to imitate the native ones (gcc and msvc)
compiler icc:
result = gcc() result = gcc()
result.name = "icc" result.name = "icc"
result.compilerExe = "icc" result.compilerExe = "icc"
@ -329,7 +329,8 @@ const
tcc(), tcc(),
pcc(), pcc(),
ucc(), ucc(),
icl()] icl(),
icc()]
hExt* = ".h" hExt* = ".h"