mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Merge topic 'cxxmodules-ninja-forced-rsp-files' into release-3.28
09c962a6a4 Tests/CXXModules: test forced rsp files with ninja
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8926
This commit is contained in:
@@ -1257,8 +1257,6 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
|
||||
{
|
||||
cmNinjaBuild scanBuild(ruleName);
|
||||
|
||||
scanBuild.RspFile = "$out.rsp";
|
||||
|
||||
if (compilePP) {
|
||||
// Move compilation dependencies to the scan/preprocessing build statement.
|
||||
std::swap(scanBuild.ExplicitDeps, objBuild.ExplicitDeps);
|
||||
@@ -1299,6 +1297,7 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
|
||||
// Tell dependency scanner where to store dyndep intermediate results.
|
||||
std::string ddiFileName = cmStrCat(objectFileName, ".ddi");
|
||||
scanBuild.Variables["DYNDEP_INTERMEDIATE_FILE"] = ddiFileName;
|
||||
scanBuild.RspFile = cmStrCat(ddiFileName, ".rsp");
|
||||
|
||||
// Outputs of the scan/preprocessor build statement.
|
||||
if (compilePP) {
|
||||
|
||||
Reference in New Issue
Block a user