summaryrefslogtreecommitdiff
path: root/src/buildtool/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r--src/buildtool/main/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index ceecc77c..846fe257 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -330,6 +330,15 @@ void SetupExecutionConfig(EndpointArguments const& eargs,
std::exit(kExitFailure);
}
}
+ if (eargs.remote_execution_dispatch_file) {
+ if (not RemoteConfig::SetRemoteExecutionDispatch(
+ *eargs.remote_execution_dispatch_file)) {
+ Logger::Log(LogLevel::Error,
+ "setting remote execution dispatch based on file '{}'",
+ eargs.remote_execution_dispatch_file->string());
+ std::exit(kExitFailure);
+ }
+ }
if (rargs.cache_endpoint) {
if (not(RemoteConfig::SetCacheAddress(*rargs.cache_endpoint) ==
(*rargs.cache_endpoint != "local"))) {