From: garyo Date: Fri, 22 May 2009 17:46:18 +0000 (+0000) Subject: Support Intel v11 compiler on Windows. Most of the code was already X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cb9cdddc3493f7549fc90d4f8fbf2ef78ec8735a;p=scons.git Support Intel v11 compiler on Windows. Most of the code was already fine; this just generalizes a check for whether it's really where the registry says it is, to allow the new v11 location (Bin//icl.exe). git-svn-id: http://scons.tigris.org/svn/scons/trunk@4211 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/intelc.py b/src/engine/SCons/Tool/intelc.py index 202c2a4b..2cd38bbf 100644 --- a/src/engine/SCons/Tool/intelc.py +++ b/src/engine/SCons/Tool/intelc.py @@ -259,7 +259,9 @@ def get_intel_compiler_top(version, abi): if not SCons.Util.can_read_reg: raise NoRegistryModuleError, "No Windows registry module was found" top = get_intel_registry_value('ProductDir', version, abi) - if not os.path.exists(os.path.join(top, "Bin", "icl.exe")): + # pre-11, icl was in Bin. 11 and later, it's in Bin/ apparently. + if not os.path.exists(os.path.join(top, "Bin", "icl.exe")) \ + and not os.path.exists(os.path.join(top, "Bin", abi, "icl.exe")): raise MissingDirError, \ "Can't find Intel compiler in %s"%(top) elif is_mac or is_linux: