Fix Cycles OpenCL multithreaded compilation not working on Windows.

This commit is contained in:
2019-02-19 13:48:29 +01:00
parent ecd66f69e7
commit 8138eb0dfe
2 changed files with 31 additions and 10 deletions

View File

@@ -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