mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Ninja: Use native slashes to pass rsp files
Some tools on Windows (e.g. Embarcadero linkers) can't handle forward slashes in paths to rsp files.
This commit is contained in:
@@ -719,9 +719,9 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement()
|
|||||||
static_cast<int>(cmSystemTools::CalculateCommandLineLengthLimit()) -
|
static_cast<int>(cmSystemTools::CalculateCommandLineLengthLimit()) -
|
||||||
globalGen.GetRuleCmdLength(this->LanguageLinkerDeviceRule());
|
globalGen.GetRuleCmdLength(this->LanguageLinkerDeviceRule());
|
||||||
|
|
||||||
const std::string rspfile =
|
const std::string rspfile = this->ConvertToNinjaPath(
|
||||||
std::string(cmake::GetCMakeFilesDirectoryPostSlash()) +
|
std::string(cmake::GetCMakeFilesDirectoryPostSlash()) +
|
||||||
genTarget.GetName() + ".rsp";
|
genTarget.GetName() + ".rsp");
|
||||||
|
|
||||||
// Gather order-only dependencies.
|
// Gather order-only dependencies.
|
||||||
cmNinjaDeps orderOnlyDeps;
|
cmNinjaDeps orderOnlyDeps;
|
||||||
@@ -1005,9 +1005,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||||||
globalGen.GetRuleCmdLength(this->LanguageLinkerRule());
|
globalGen.GetRuleCmdLength(this->LanguageLinkerRule());
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string rspfile =
|
const std::string rspfile = this->ConvertToNinjaPath(
|
||||||
std::string(cmake::GetCMakeFilesDirectoryPostSlash()) + gt.GetName() +
|
std::string(cmake::GetCMakeFilesDirectoryPostSlash()) + gt.GetName() +
|
||||||
".rsp";
|
".rsp");
|
||||||
|
|
||||||
// Gather order-only dependencies.
|
// Gather order-only dependencies.
|
||||||
cmNinjaDeps orderOnlyDeps;
|
cmNinjaDeps orderOnlyDeps;
|
||||||
|
|||||||
Reference in New Issue
Block a user