summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-02-16 23:28:56 (GMT)
committerSteven Knight <knight@baldmt.com>2005-02-16 23:28:56 (GMT)
commitf40d9280448cfad8ed681a0f89eb0b8371c552a5 (patch)
tree4f15c1d30afc52b02ac98b2cf3d737156dbb30e7 /src
parent2456f7e895f4a8843bd8739c3de6214c68a88b0b (diff)
downloadSCons-f40d9280448cfad8ed681a0f89eb0b8371c552a5.zip
SCons-f40d9280448cfad8ed681a0f89eb0b8371c552a5.tar.gz
SCons-f40d9280448cfad8ed681a0f89eb0b8371c552a5.tar.bz2
Fix Intel compiler detection when there's no MSVC compiler installed. (Gary Oberbrunner)
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Tool/intelc.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/intelc.py b/src/engine/SCons/Tool/intelc.py
index da3b649..88e38e1 100644
--- a/src/engine/SCons/Tool/intelc.py
+++ b/src/engine/SCons/Tool/intelc.py
@@ -128,10 +128,10 @@ def get_all_compiler_versions():
versions.sort(fltcmp)
return versions
-def get_intel_compiler_top(version=None, abi=None):
+def get_intel_compiler_top(version, abi):
"""
Return the main path to the top-level dir of the Intel compiler,
- using the given version or latest if None.
+ using the given version.
The compiler will be in <top>/bin/icl.exe (icc on linux),
the include dir is <top>/include, etc.
"""
@@ -275,15 +275,16 @@ def exists(env):
return 0
try:
- top = get_intel_compiler_top()
+ versions = get_all_compiler_versions()
except (SCons.Util.RegError, IntelCError):
- top = None
- if not top:
+ versions = None
+ detected = versions is not None and len(versions) > 0
+ if not detected:
# try env.Detect, maybe that will work
if is_win32:
return env.Detect('icl')
elif is_linux:
return env.Detect('icc')
- return top is not None
+ return detected
# end of file