msvc: fix check of intel composer version with visual studio 2010

Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
This commit is contained in:
Stian Selnes 2013-03-23 09:23:02 +01:00 committed by Thomas Nagy
parent c3cbd4c353
commit 336c3f2e3f
1 changed files with 10 additions and 8 deletions

View File

@ -496,8 +496,10 @@ def gather_intel_composer_versions(conf, versions):
setattr(conf, compilervars_warning_attr, False)
patch_url = 'http://software.intel.com/en-us/forums/topic/328487'
compilervars_arch = os.path.join(path, 'bin', 'compilervars_arch.bat')
vs_express_path = os.environ['VS110COMNTOOLS'] + r'..\IDE\VSWinExpress.exe'
dev_env_path = os.environ['VS110COMNTOOLS'] + r'..\IDE\devenv.exe'
for vscomntools in ['VS110COMNTOOLS', 'VS100COMNTOOLS']:
if os.environ.has_key (vscomntools):
vs_express_path = os.environ[vscomntools] + r'..\IDE\VSWinExpress.exe'
dev_env_path = os.environ[vscomntools] + r'..\IDE\devenv.exe'
if (r'if exist "%VS110COMNTOOLS%..\IDE\VSWinExpress.exe"' in Utils.readf(compilervars_arch) and
not os.path.exists(vs_express_path) and not os.path.exists(dev_env_path)):
Logs.warn(('The Intel compilervar_arch.bat only checks for one Visual Studio SKU '