[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 10 01:35:08 PDT 2024
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111531 at github.com>
================
@@ -272,6 +272,8 @@ def parseOptionsAndInitTestdirs():
configuration.make_path = "gmake"
else:
configuration.make_path = "make"
+ if ' ' in configuration.make_path:
+ configuration.make_path = f'"{configuration.make_path}"'
----------------
labath wrote:
That may be fine, but I think this is the wrong place to quote it. I think it should happen somewhere around the place where this variable is concatenated into a string (or passed to whatever it is that requires it to be quoted).
That said, after tracing this variable, I'm a little unsure as to why is this needed. IIUC, this eventually makes its way to the `subprocess.check_output` call [here](https://github.com/llvm/llvm-project/blob/f1eac7761704fa4e16c2619a84890baad380fdce/lldb/packages/Python/lldbsuite/test/lldbtest.py#L1499), which should be able to handle quoting on its own.
Can you explain what the problem was without this?
https://github.com/llvm/llvm-project/pull/111531
More information about the lldb-commits
mailing list