From 1adf3ea9c28b1b72eb7e56ef4027d2aee200042e Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 5 Jul 2022 16:56:32 +0200 Subject: Make remote endpoint specification part of analysis The remote execution endpoint shards the target-level cache; still, for analysis, we want to specify a particular target-level cache, e.g., to analyse the inputs of a particular action that failed remotely. Note that the action identifier depends on the target-level cache in question, due to the extensional projection implicit in target-level caching. --- src/buildtool/main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 6d7be359..1c84d585 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -80,6 +80,7 @@ auto SetupAnalyseCommandArguments( gsl::not_null const& clargs) { SetupCommonArguments(app, &clargs->common); SetupAnalysisArguments(app, &clargs->analysis); + SetupEndpointArguments(app, &clargs->endpoint); SetupDiagnosticArguments(app, &clargs->diagnose); SetupCompatibilityArguments(app); } @@ -229,7 +230,7 @@ void SetupExecutionConfig(EndpointArguments const& eargs, Logger::Log(LogLevel::Error, "failed to configure local execution."); std::exit(kExitFailure); } - for (auto const& property : bargs.platform_properties) { + for (auto const& property : eargs.platform_properties) { if (not RemoteConfig::AddPlatformProperty(property)) { Logger::Log(LogLevel::Error, "addding platform property '{}' failed.", -- cgit v1.2.3