mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 00:02:21 +08:00
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`.
This commit is contained in:
@@ -1118,11 +1118,7 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
|
|||||||
{
|
{
|
||||||
cmNinjaBuild scanBuild(ruleName);
|
cmNinjaBuild scanBuild(ruleName);
|
||||||
|
|
||||||
if (!ppFileName.empty()) {
|
scanBuild.RspFile = "$out.rsp";
|
||||||
scanBuild.RspFile = cmStrCat(ppFileName, ".rsp");
|
|
||||||
} else {
|
|
||||||
scanBuild.RspFile = "$out.rsp";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (compilePP) {
|
if (compilePP) {
|
||||||
// Move compilation dependencies to the scan/preprocessing build statement.
|
// Move compilation dependencies to the scan/preprocessing build statement.
|
||||||
|
Reference in New Issue
Block a user