diff options
author | Sergey Semushin <Predelnik@gmail.com> | 2022-05-26 19:46:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 18:46:36 +0200 |
commit | bb024c69353cd34145c72d3a64fc94604e0407ce (patch) | |
tree | 34ba3ded82d7262121acf442780e6ec63bdf4a9c /src/execute.cpp | |
parent | cbedccc9fa30f8958dc3e7fbdf900a952f63d5ad (diff) | |
download | ccache-bb024c69353cd34145c72d3a64fc94604e0407ce.tar.gz |
fix(win32execute): Handle space in paths when using response file (#1080)
Diffstat (limited to 'src/execute.cpp')
-rw-r--r-- | src/execute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.cpp b/src/execute.cpp index 2355c622..801349b8 100644 --- a/src/execute.cpp +++ b/src/execute.cpp @@ -149,7 +149,7 @@ win32execute(const char* path, TemporaryFile tmp_file(FMT("{}/cmd_args", temp_dir)); args = Win32Util::argv_to_string(argv + 1, sh, true); Util::write_fd(*tmp_file.fd, args.data(), args.length()); - args = FMT("{} @{}", full_path, tmp_file.path); + args = FMT(R"("{}" "@{}")", full_path, tmp_file.path); tmp_file_path = tmp_file.path; LOG("Arguments from {}", tmp_file.path); } |