summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-05-19 13:27:31 +0100
committerKeith Whitwell <[email protected]>2010-05-19 13:36:05 +0100
commita536c204e289c46b0d493acfb4ebaf99f2b05189 (patch)
tree7a969eba634ef8a2b1b3882de175662099603bbb
parent5a5a82d7e88c2971acad026b94e90588b2367a22 (diff)
scons: don't set default_llvm on windows unles LLVM is defined
Otherwise we'll raise an error later in llvm.py
-rw-r--r--common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.py b/common.py
index 742dabf4c45..300e91a3766 100644
--- 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