Browse Source

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.
Eduard Voronkin 2 months ago
parent
commit
9d54b639d3
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Source/cmFastbuildTargetGenerator.cxx

+ 0 - 2
Source/cmFastbuildTargetGenerator.cxx

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