summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.py b/common.py
index 8372176edd..742dabf4c4 100644
--- a/common.py
+++ b/common.py
@@ -34,10 +34,15 @@ else:
default_machine = _platform.machine()
default_machine = _machine_map.get(default_machine, 'generic')
-if 'LLVM' in os.environ or subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0:
+if 'LLVM' in os.environ:
default_llvm = 'yes'
else:
default_llvm = 'no'
+ try:
+ if subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0:
+ default_llvm = 'yes'
+ except:
+ pass
if default_platform in ('linux', 'freebsd'):
default_dri = 'yes'