mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-30 19:29:18 -06:00
Merge topic 'ninja-dyndep-touchups'
76e6e01c6ccmNinjaTargetGenerator: use a different depfile for preprocessing414332ff57cmake_ninja_dyndep: don't duplicate slashes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3093
This commit is contained in:
@@ -1997,7 +1997,7 @@ int cmcmd_cmake_ninja_dyndep(std::vector<std::string>::const_iterator argBeg,
|
||||
std::string const dir_top_bld = tdi["dir-top-bld"].asString();
|
||||
std::string const dir_top_src = tdi["dir-top-src"].asString();
|
||||
std::string module_dir = tdi["module-dir"].asString();
|
||||
if (!module_dir.empty()) {
|
||||
if (!module_dir.empty() && !cmHasLiteralSuffix(module_dir, "/")) {
|
||||
module_dir += "/";
|
||||
}
|
||||
std::vector<std::string> linked_target_dirs;
|
||||
|
||||
@@ -1113,7 +1113,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
|
||||
|
||||
// Explicit preprocessing always uses a depfile.
|
||||
ppVars["DEP_FILE"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
objectFileName + ".d", cmOutputConverter::SHELL);
|
||||
objectFileName + ".pp.d", cmOutputConverter::SHELL);
|
||||
if (compilePP) {
|
||||
// The actual compilation does not need a depfile because it
|
||||
// depends on the already-preprocessed source.
|
||||
|
||||
Reference in New Issue
Block a user