scons: don't set default_llvm on windows unles LLVM is defined
authorKeith Whitwell <keithw@vmware.com>
Wed, 19 May 2010 12:27:31 +0000 (13:27 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 19 May 2010 12:36:05 +0000 (13:36 +0100)
Otherwise we'll raise an error later in llvm.py

common.py

index 742dabf4c45d38d269b5935375297c314436f14d..300e91a3766a282f526ae0a44c34833060ac41f3 100644 (file)
--- a/common.py
+++ b/common.py
@@ -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