diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-19 15:48:29 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-19 15:48:56 +0300 |
commit | 8138eb0dfefa3b6d05d197a9a701e964b8719328 (patch) | |
tree | fba23f82b32abd3a0dbd822b26bcb02e1624c9d6 /intern/cycles/util/util_system.cpp | |
parent | ecd66f69e7b66e8a6ed9b5f39c7dfe272dfbbbed (diff) |
Fix Cycles OpenCL multithreaded compilation not working on Windows.
Diffstat (limited to 'intern/cycles/util/util_system.cpp')
-rw-r--r-- | intern/cycles/util/util_system.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index a79829a3dd9..2a5c4a8f012 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -341,10 +341,11 @@ bool system_call_self(const vector<string>& args) cmd += " \"" + args[i] + "\""; } - /* Quiet output. */ #ifdef _WIN32 - cmd += " > nul"; + /* Use cmd /S to avoid issues with spaces in arguments. */ + cmd = "cmd /S /C \"" + cmd + " > nul \""; #else + /* Quiet output. */ cmd += " > /dev/null"; #endif |