summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-14 19:06:34 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-14 19:06:34 (GMT)
commitd94b23885a6646571904c9f41599ffde487d6314 (patch)
tree2b36799792ec2ef9d0dcb3b06fba69493e0d5b8a
parent0d3ddb17049afc660ac2a11c13013c940d9fc04c (diff)
downloadCMake-d94b23885a6646571904c9f41599ffde487d6314.zip
CMake-d94b23885a6646571904c9f41599ffde487d6314.tar.gz
CMake-d94b23885a6646571904c9f41599ffde487d6314.tar.bz2
cmNinjaTargetGenerator: Simplify scan rule response file selection
Since commit 33a8e0bb09 (cmNinjaTargetGenerator: Simplify scan rule depfile selection, 2020-11-06, v3.20.0-rc1~516^2~1), the `$out` of the scan rule always matches our `.rsp` file selection, so use `$out.rsp`.
-rw-r--r--Source/cmNinjaTargetGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 6080270..6543485 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1118,11 +1118,7 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
{
cmNinjaBuild scanBuild(ruleName);
- if (!ppFileName.empty()) {
- scanBuild.RspFile = cmStrCat(ppFileName, ".rsp");
- } else {
- scanBuild.RspFile = "$out.rsp";
- }
+ scanBuild.RspFile = "$out.rsp";
if (compilePP) {
// Move compilation dependencies to the scan/preprocessing build statement.