wrappers: Escape the first argument to spawn

This fixes running in paths that contain a space.
This commit is contained in:
Martin Storsjö committed 2019-05-06 11:04:53 +03:00
1 parent 97ca0681bc
commit fa88c4ee1e
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ int _tmain(int argc, TCHAR* argv[]) {
int arg = 0;
if (getenv("CCACHE"))
exec_argv[arg++] = _T("ccache");
exec_argv[arg++] = concat(dir, _T(CLANG));
exec_argv[arg++] = escape(concat(dir, _T(CLANG)));
// If changing this wrapper, change clang-target-wrapper.sh accordingly.
if (!_tcscmp(exe, _T("clang++")) || !_tcscmp(exe, _T("g++")) || !_tcscmp(exe, _T("c++")))