FASTBuild: don't set ExecWorkingDir for custom command

We don't need set ExecWorkingDir since we add
a "cd" command to the script file anyway
(so the custom command will be executed in the correct directory).

Moreover, in 1.16 FASTBuild started using posix_spawn* API
instead of fork() (which is much more efficient),
but it only does so if `ExecWorkingDir` is not set.
This commit is contained in:
Eduard Voronkin
2025-09-18 14:22:41 -07:00
parent 2fdae375ec
commit 9d54b639d3

View File

@@ -665,8 +665,6 @@ FastbuildExecNodes cmFastbuildTargetGenerator::GenerateCommands(
WriteScriptProlog(scriptFile);
WriteCmdsToFile(scriptFile, cmdLines);
WriteScriptEpilog(scriptFile);
execNode.ExecWorkingDir = GetScriptWorkingDir(ccg);
}
// Tested in "ObjectLibrary / complexOneConfig" tests.