summaryrefslogtreecommitdiff
path: root/test/profile/Linux/lit.local.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile/Linux/lit.local.cfg')
-rw-r--r--test/profile/Linux/lit.local.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/profile/Linux/lit.local.cfg b/test/profile/Linux/lit.local.cfg
index 410ffd8c5b05..98d79518b92a 100644
--- a/test/profile/Linux/lit.local.cfg
+++ b/test/profile/Linux/lit.local.cfg
@@ -20,7 +20,9 @@ def is_gold_linker_available():
if not '-plugin' in ld_out:
return False
- clang_cmd = subprocess.Popen([config.clang, '-fuse-ld=gold', '-xc', '-'],
+ # config.clang is not guaranteed to be just the executable!
+ clang_cmd = subprocess.Popen(" ".join([config.clang, '-fuse-ld=gold', '-xc', '-']),
+ shell=True,
universal_newlines = True,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,