aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lit/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/lit/lit.cfg b/lit/lit.cfg
index 7e1fcf7520ca..98d69bb4c817 100644
--- a/lit/lit.cfg
+++ b/lit/lit.cfg
@@ -54,7 +54,7 @@ config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable', '')
# Register substitutions
-config.substitutions.append(('%python', config.python_executable))
+config.substitutions.append(('%python', "'%s'" % (config.python_executable)))
debugserver = lit.util.which('debugserver', lldb_tools_dir)
lldb = "%s -S %s/lit-lldb-init" % (lit.util.which('lldb', lldb_tools_dir),