|
@@ -713,6 +713,7 @@ bool cmake::SetCacheArgs(std::vector<std::string> const& args)
|
|
|
// relative to $PWD.
|
|
// relative to $PWD.
|
|
|
auto path = cmSystemTools::ToNormalizedPathOnDisk(value);
|
|
auto path = cmSystemTools::ToNormalizedPathOnDisk(value);
|
|
|
state->InitializeFileAPI();
|
|
state->InitializeFileAPI();
|
|
|
|
|
+ state->InitializeInstrumentation();
|
|
|
state->ReadListFile(args, path);
|
|
state->ReadListFile(args, path);
|
|
|
return true;
|
|
return true;
|
|
|
} },
|
|
} },
|
|
@@ -2619,11 +2620,7 @@ int cmake::ActualConfigure()
|
|
|
#if !defined(CMAKE_BOOTSTRAP)
|
|
#if !defined(CMAKE_BOOTSTRAP)
|
|
|
this->InitializeFileAPI();
|
|
this->InitializeFileAPI();
|
|
|
this->FileAPI->ReadQueries();
|
|
this->FileAPI->ReadQueries();
|
|
|
-
|
|
|
|
|
- this->Instrumentation = cm::make_unique<cmInstrumentation>(
|
|
|
|
|
- this->State->GetBinaryDirectory(),
|
|
|
|
|
- cmInstrumentation::LoadQueriesAfter::No);
|
|
|
|
|
- this->Instrumentation->ClearGeneratedQueries();
|
|
|
|
|
|
|
+ this->InitializeInstrumentation();
|
|
|
|
|
|
|
|
if (!this->GetIsInTryCompile()) {
|
|
if (!this->GetIsInTryCompile()) {
|
|
|
this->TruncateOutputLog("CMakeConfigureLog.yaml");
|
|
this->TruncateOutputLog("CMakeConfigureLog.yaml");
|
|
@@ -2886,6 +2883,18 @@ void cmake::InitializeFileAPI()
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void cmake::InitializeInstrumentation()
|
|
|
|
|
+{
|
|
|
|
|
+#ifndef CMAKE_BOOTSTRAP
|
|
|
|
|
+ if (!this->Instrumentation) {
|
|
|
|
|
+ this->Instrumentation = cm::make_unique<cmInstrumentation>(
|
|
|
|
|
+ this->State->GetBinaryDirectory(),
|
|
|
|
|
+ cmInstrumentation::LoadQueriesAfter::No);
|
|
|
|
|
+ this->Instrumentation->ClearGeneratedQueries();
|
|
|
|
|
+ }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// handle a command line invocation
|
|
// handle a command line invocation
|
|
|
int cmake::Run(std::vector<std::string> const& args, bool noconfigure)
|
|
int cmake::Run(std::vector<std::string> const& args, bool noconfigure)
|
|
|
{
|
|
{
|