aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index c80e6dd6c..11d9fbc64 100644
--- a/utils.py
+++ b/utils.py
@@ -775,9 +775,10 @@ def detectClang():
if not clangDir:
source = findLlvmConfig()
try:
- output = run_process_output([source, '--prefix'])
- if output:
- clangDir = output[0]
+ if source is not None:
+ output = run_process_output([source, '--prefix'])
+ if output:
+ clangDir = output[0]
except OSError:
pass
if clangDir: