summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index 53cf71c03f..702f1e354f 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -58,7 +58,7 @@ def generate(env):
if env.Detect('llvm-config'):
try:
env['LLVM_VERSION'] = env.backtick('llvm-config --version')
- except NameError:
+ except AttributeError:
env['LLVM_VERSION'] = 'X.X'
env.ParseConfig('llvm-config --cppflags')