OSX/scons: forgot Intel CC ( ‘icc’ ) in detection

Todo: perhaps unify this for all OS, but keep in mind:
Apple compiler versions may have other capabilities
than std gcc, llvm, clang ( other versioning also )
This commit is contained in:
Jens Verwiebe
2013-12-07 18:05:27 +01:00
parent 9174f22b3c
commit 31871c763f

View File

@@ -304,7 +304,7 @@ if env['OURPLATFORM']=='darwin':
ver = re.search(r'[0-9]+(\.[0-9]+)+', line)
if ver:
env['CCVERSION'] = ver.group(0)
frontend = re.search(r'gcc', line) or re.search(r'clang', line) or re.search(r'llvm-gcc', line)
frontend = re.search(r'gcc', line) or re.search(r'clang', line) or re.search(r'llvm-gcc', line) or re.search(r'icc', line)
if frontend:
env['MACOSX_COMPILER'] = frontend.group(0)