|
@@ -1762,7 +1762,8 @@ void cmGlobalNinjaGenerator::WriteBuiltinTargets(std::ostream& os)
|
|
|
this->WriteTargetRebuildManifest(os);
|
|
this->WriteTargetRebuildManifest(os);
|
|
|
this->WriteTargetClean(os);
|
|
this->WriteTargetClean(os);
|
|
|
this->WriteTargetHelp(os);
|
|
this->WriteTargetHelp(os);
|
|
|
-#if !defined(CMAKE_BOOTSTRAP)
|
|
|
|
|
|
|
+#if !defined(CMAKE_BOOTSTRAP) && !defined(_WIN32)
|
|
|
|
|
+ // FIXME(#26668) This does not work on Windows
|
|
|
if (this->GetCMakeInstance()
|
|
if (this->GetCMakeInstance()
|
|
|
->GetInstrumentation()
|
|
->GetInstrumentation()
|
|
|
->HasPreOrPostBuildHook()) {
|
|
->HasPreOrPostBuildHook()) {
|
|
@@ -1843,7 +1844,8 @@ void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os)
|
|
|
}
|
|
}
|
|
|
reBuild.ImplicitDeps.push_back(this->CMakeCacheFile);
|
|
reBuild.ImplicitDeps.push_back(this->CMakeCacheFile);
|
|
|
|
|
|
|
|
-#if !defined(CMAKE_BOOTSTRAP)
|
|
|
|
|
|
|
+#if !defined(CMAKE_BOOTSTRAP) && !defined(_WIN32)
|
|
|
|
|
+ // FIXME(#26668) This does not work on Windows
|
|
|
if (this->GetCMakeInstance()
|
|
if (this->GetCMakeInstance()
|
|
|
->GetInstrumentation()
|
|
->GetInstrumentation()
|
|
|
->HasPreOrPostBuildHook()) {
|
|
->HasPreOrPostBuildHook()) {
|
|
@@ -2196,6 +2198,8 @@ void cmGlobalNinjaGenerator::WriteTargetHelp(std::ostream& os)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#if !defined(CMAKE_BOOTSTRAP) && !defined(_WIN32)
|
|
|
|
|
+// FIXME(#26668) This does not work on Windows
|
|
|
void cmGlobalNinjaGenerator::WriteTargetInstrument(std::ostream& os)
|
|
void cmGlobalNinjaGenerator::WriteTargetInstrument(std::ostream& os)
|
|
|
{
|
|
{
|
|
|
// Write rule
|
|
// Write rule
|
|
@@ -2204,13 +2208,11 @@ void cmGlobalNinjaGenerator::WriteTargetInstrument(std::ostream& os)
|
|
|
rule.Command = cmStrCat(
|
|
rule.Command = cmStrCat(
|
|
|
"\"", cmSystemTools::GetCTestCommand(), "\" --start-instrumentation \"",
|
|
"\"", cmSystemTools::GetCTestCommand(), "\" --start-instrumentation \"",
|
|
|
this->GetCMakeInstance()->GetHomeOutputDirectory(), "\"");
|
|
this->GetCMakeInstance()->GetHomeOutputDirectory(), "\"");
|
|
|
-#ifndef _WIN32
|
|
|
|
|
/*
|
|
/*
|
|
|
* On Unix systems, Ninja will prefix the command with `/bin/sh -c`.
|
|
* On Unix systems, Ninja will prefix the command with `/bin/sh -c`.
|
|
|
* Use exec so that Ninja is the parent process of the command.
|
|
* Use exec so that Ninja is the parent process of the command.
|
|
|
*/
|
|
*/
|
|
|
rule.Command = cmStrCat("exec ", rule.Command);
|
|
rule.Command = cmStrCat("exec ", rule.Command);
|
|
|
-#endif
|
|
|
|
|
rule.Description = "Collecting build metrics";
|
|
rule.Description = "Collecting build metrics";
|
|
|
rule.Comment = "Rule to initialize instrumentation daemon.";
|
|
rule.Comment = "Rule to initialize instrumentation daemon.";
|
|
|
rule.Restat = "1";
|
|
rule.Restat = "1";
|
|
@@ -2231,6 +2233,7 @@ void cmGlobalNinjaGenerator::WriteTargetInstrument(std::ostream& os)
|
|
|
WriteBuild(os, instrument);
|
|
WriteBuild(os, instrument);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
void cmGlobalNinjaGenerator::InitOutputPathPrefix()
|
|
void cmGlobalNinjaGenerator::InitOutputPathPrefix()
|
|
|
{
|
|
{
|