scons: don't set default_llvm on windows unles LLVM is defined

Otherwise we'll raise an error later in llvm.py
This commit is contained in:
Keith Whitwell
2010-05-19 13:27:31 +01:00
parent 5a5a82d7e8
commit a536c204e2

View File

@@ -39,7 +39,7 @@ if 'LLVM' in os.environ:
else:
default_llvm = 'no'
try:
if subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0:
if env['platform'] != 'windows' and subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0:
default_llvm = 'yes'
except:
pass