[clang] 16c6e0f - Quote a python executable path

Jeremy Morse via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 07:24:16 PST 2020


Author: Jeremy Morse
Date: 2020-03-04T15:23:48Z
New Revision: 16c6e0f387e957d21ab90c8694c11cd269ec7719

URL: https://github.com/llvm/llvm-project/commit/16c6e0f387e957d21ab90c8694c11cd269ec7719
DIFF: https://github.com/llvm/llvm-project/commit/16c6e0f387e957d21ab90c8694c11cd269ec7719.diff

LOG: Quote a python executable path

On my Windows machine at least, the path to python contains a space.

Added: 
    

Modified: 
    clang/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 08d15edac94c..bdf3b1179225 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -81,7 +81,7 @@
         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)
 


        


More information about the cfe-commits mailing list