diff options
author | Araq <rumpf_a@web.de> | 2017-12-15 19:12:39 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-12-15 19:12:39 +0100 |
commit | 7a711cc8e17ed356112b00ee237f8bef11f290bd (patch) | |
tree | 5d31253c58c8a02889e1f048cb0325724b7b999f | |
parent | 7c3e00d469efc83e50dfa45ffb4c573a66d6deff (diff) | |
download | Nim-7a711cc8e17ed356112b00ee237f8bef11f290bd.tar.gz |
cleanup of the Intel compiler handling; refs #6488
-rw-r--r-- | compiler/extccomp.nim | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 150dc2eaa..7a473ea43 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -21,7 +21,7 @@ import type TSystemCC* = enum 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: hasSwitchRange, # CC allows ranges in switch statements (GNU C) hasComputedGoto, # CC has computed goto (GNU C extension) @@ -135,17 +135,17 @@ compiler vcc: # Intel C/C++ Compiler compiler icl: - # Intel compilers try to imitate the native ones (gcc and msvc) - when defined(windows): - result = vcc() - result.name = "icl" - result.compilerExe = "icl" - result.linkerExe = "icl" - else: - result = gcc() - result.name = "icc" - result.compilerExe = "icc" - result.linkerExe = "icc" + result = vcc() + result.name = "icl" + result.compilerExe = "icl" + result.linkerExe = "icl" + +# Intel compilers try to imitate the native ones (gcc and msvc) +compiler icc: + result = gcc() + result.name = "icc" + result.compilerExe = "icc" + result.linkerExe = "icc" # Local C Compiler compiler lcc: @@ -329,7 +329,8 @@ const tcc(), pcc(), ucc(), - icl()] + icl(), + icc()] hExt* = ".h" |