diff options
author | Russel Winder <russel@winder.org.uk> | 2016-01-14 08:14:52 (GMT) |
---|---|---|
committer | Russel Winder <russel@winder.org.uk> | 2016-01-14 08:14:52 (GMT) |
commit | 7af8afe47afcb33f62da6a6c452680baf7b3b73b (patch) | |
tree | bd5fa1fc90b6909487db148bd2330de3efa3c3f2 /src/engine/SCons/Tool | |
parent | 79d11adfb4ae11260ab644e8968843058e091ab4 (diff) | |
parent | ecb75f53e36ae33fa4874b3d8df478628b47018e (diff) | |
download | SCons-7af8afe47afcb33f62da6a6c452680baf7b3b73b.zip SCons-7af8afe47afcb33f62da6a6c452680baf7b3b73b.tar.gz SCons-7af8afe47afcb33f62da6a6c452680baf7b3b73b.tar.bz2 |
Commit resolved conflicting merge.
Diffstat (limited to 'src/engine/SCons/Tool')
-rw-r--r-- | src/engine/SCons/Tool/intelc.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/intelc.py b/src/engine/SCons/Tool/intelc.py index 2b396c4..185db9e 100644 --- a/src/engine/SCons/Tool/intelc.py +++ b/src/engine/SCons/Tool/intelc.py @@ -288,6 +288,12 @@ def get_all_compiler_versions(): m = re.search(r'([0-9]{0,4})(?:_sp\d*)?\.([0-9][0-9.]*)$', d) if m: versions.append("%s.%s"%(m.group(1), m.group(2))) + for d in glob.glob('/opt/intel/compilers_and_libraries_*'): + # JPA: For the new version of Intel compiler 2016.1. + m = re.search(r'([0-9]{0,4})(?:_sp\d*)?\.([0-9][0-9.]*)$', d) + if m: + versions.append("%s.%s"%(m.group(1), m,group(2))) + def keyfunc(str): """Given a dot-separated version string, return a tuple of ints representing it.""" return [int(x) for x in str.split('.')] @@ -369,7 +375,16 @@ def get_intel_compiler_top(version, abi): top = d break return top - top = find_in_2011style_dir(version) or find_in_2010style_dir(version) or find_in_2008style_dir(version) + def find_in_2016style_dir(version): + # The 2016 (compiler v16) dirs are inconsistent from previous. + top = None + for d in glob.glob('/opt/intel/compilers_and_libraries_%s/linux'%version): + if os.path.exists(os.path.join(d, "bin", "ia32", "icc")) or os.path.exists(os.path.join(d, "bin", "intel64", "icc")): + top = d + break + return top + + top = find_in_2016style_dir(version) or find_in_2011style_dir(version) or find_in_2010style_dir(version) or find_in_2008style_dir(version) # print "INTELC: top=",top if not top: raise MissingDirError("Can't find version %s Intel compiler in %s (abi='%s')"%(version,top, abi)) |