[Lldb-commits] [lldb] r339180 - [lit, python] Change the order of the quotes in the lit cfg file
Stella Stamenova via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 7 13:58:03 PDT 2018
Author: stella.stamenova
Date: Tue Aug 7 13:58:02 2018
New Revision: 339180
URL: http://llvm.org/viewvc/llvm-project?rev=339180&view=rev
Log:
[lit, python] Change the order of the quotes in the lit cfg file
Double quotes are always correct in paths on windows while single quotes only work sometimes. By swapping the order of the quotes in the subsitution we guarantee that the quotes will be correct on Windows. Both sets work correctly on Linux in the test environment.
Modified:
lldb/trunk/lit/lit.cfg
Modified: lldb/trunk/lit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/lit.cfg?rev=339180&r1=339179&r2=339180&view=diff
==============================================================================
--- lldb/trunk/lit/lit.cfg (original)
+++ lldb/trunk/lit/lit.cfg Tue Aug 7 13:58:02 2018
@@ -54,7 +54,7 @@ config.environment['LLVM_SRC_ROOT'] = ge
config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable', '')
# Register substitutions
-config.substitutions.append(('%python', "'%s'" % (config.python_executable)))
+config.substitutions.append(('%python', '"%s"' % (config.python_executable)))
if platform.system() in ['Darwin']:
debugserver = lit.util.which('debugserver', lldb_tools_dir)
More information about the lldb-commits
mailing list