mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
Merge branch 'ninja-multi-rsp-remove-path' into release-3.17
Merge-request: !5094
This commit is contained in:
@@ -748,12 +748,8 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement(
|
|||||||
static_cast<int>(cmSystemTools::CalculateCommandLineLengthLimit()) -
|
static_cast<int>(cmSystemTools::CalculateCommandLineLengthLimit()) -
|
||||||
globalGen->GetRuleCmdLength(this->LanguageLinkerDeviceRule(config));
|
globalGen->GetRuleCmdLength(this->LanguageLinkerDeviceRule(config));
|
||||||
|
|
||||||
std::string path = localGen.GetHomeRelativeOutputPath();
|
|
||||||
if (!path.empty()) {
|
|
||||||
path += '/';
|
|
||||||
}
|
|
||||||
build.RspFile = this->ConvertToNinjaPath(
|
build.RspFile = this->ConvertToNinjaPath(
|
||||||
cmStrCat(path, "CMakeFiles/", genTarget->GetName(),
|
cmStrCat("CMakeFiles/", genTarget->GetName(),
|
||||||
globalGen->IsMultiConfig() ? cmStrCat('.', config) : "", ".rsp"));
|
globalGen->IsMultiConfig() ? cmStrCat('.', config) : "", ".rsp"));
|
||||||
|
|
||||||
// Gather order-only dependencies.
|
// Gather order-only dependencies.
|
||||||
@@ -1162,12 +1158,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement(
|
|||||||
globalGen->GetRuleCmdLength(linkBuild.Rule);
|
globalGen->GetRuleCmdLength(linkBuild.Rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string path = localGen.GetHomeRelativeOutputPath();
|
|
||||||
if (!path.empty()) {
|
|
||||||
path += '/';
|
|
||||||
}
|
|
||||||
linkBuild.RspFile = this->ConvertToNinjaPath(
|
linkBuild.RspFile = this->ConvertToNinjaPath(
|
||||||
cmStrCat(path, "CMakeFiles/", gt->GetName(),
|
cmStrCat("CMakeFiles/", gt->GetName(),
|
||||||
globalGen->IsMultiConfig() ? cmStrCat('.', config) : "", ".rsp"));
|
globalGen->IsMultiConfig() ? cmStrCat('.', config) : "", ".rsp"));
|
||||||
|
|
||||||
// Gather order-only dependencies.
|
// Gather order-only dependencies.
|
||||||
|
|||||||
Reference in New Issue
Block a user