From 0bcf72d0a06cd4076898deabc87c2d9e6401a861 Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Tue, 9 Jan 2018 12:37:01 -0500 Subject: [PATCH] Only shell out to llvm-config if the configure step found it --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 535069db..8fd16357 100644 --- a/wscript +++ b/wscript @@ -304,9 +304,12 @@ def build(bld): lib.append('ncurses') if bld.env['use_system_clang']: - rpath = str(subprocess.check_output( + if bld.env['llvm_config']: + rpath = str(subprocess.check_output( [bld.env['llvm_config'], '--libdir'], stderr=subprocess.STDOUT).decode()).strip() + else: + rpath = [] # Use CXX set by --check-cxx-compiler if it is "clang". # See https://github.com/jacobdufault/cquery/issues/237