Quote a python executable path
authorJeremy Morse <jeremy.morse@sony.com>
Wed, 4 Mar 2020 15:22:31 +0000 (15:22 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Wed, 4 Mar 2020 15:23:48 +0000 (15:23 +0000)
On my Windows machine at least, the path to python contains a space.

clang/test/lit.cfg.py

index 08d15ed..bdf3b11 100644 (file)
@@ -81,7 +81,7 @@ if config.clang_staticanalyzer:
         config.test_source_root, "Analysis", "check-analyzer-fixit.py")
     config.substitutions.append(
         ('%check_analyzer_fixit',
-         '%s %s' % (config.python_executable, check_analyzer_fixit_path)))
+         '"%s" %s' % (config.python_executable, check_analyzer_fixit_path)))
 
 llvm_config.add_tool_substitutions(tools, tool_dirs)