From 5e99a8eca8ef8955dac0d2c76fb0e96b9802b4e8 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 13 Dec 2023 17:01:55 +0100 Subject: graph_traverser: Forward repo_config via make_optional ... to support building with older GNU libstc++ versions. --- src/buildtool/graph_traverser/graph_traverser.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/buildtool/graph_traverser/graph_traverser.hpp b/src/buildtool/graph_traverser/graph_traverser.hpp index 82e9f17a..205bac32 100644 --- a/src/buildtool/graph_traverser/graph_traverser.hpp +++ b/src/buildtool/graph_traverser/graph_traverser.hpp @@ -73,9 +73,10 @@ class GraphTraverser { gsl::not_null const& repo_config) : clargs_{std::move(clargs)}, repo_config_{repo_config}, - local_api_{CreateExecutionApi(std::nullopt, repo_config)}, + local_api_{CreateExecutionApi(std::nullopt, + std::make_optional(repo_config))}, remote_api_{CreateExecutionApi(RemoteExecutionConfig::RemoteAddress(), - repo_config)}, + std::make_optional(repo_config))}, reporter_{[](auto done, auto cv) {}} {} explicit GraphTraverser(CommandLineArguments clargs, @@ -83,9 +84,10 @@ class GraphTraverser { progress_reporter_t reporter) : clargs_{std::move(clargs)}, repo_config_{repo_config}, - local_api_{CreateExecutionApi(std::nullopt, repo_config)}, + local_api_{CreateExecutionApi(std::nullopt, + std::make_optional(repo_config))}, remote_api_{CreateExecutionApi(RemoteExecutionConfig::RemoteAddress(), - repo_config)}, + std::make_optional(repo_config))}, reporter_{std::move(reporter)} {} /// \brief Parses actions and blobs into graph, traverses it and retrieves @@ -371,8 +373,9 @@ class GraphTraverser { DependencyGraph const& g, std::vector const& artifact_ids) const -> bool { // setup rebuilder with api for cache endpoint - auto api_cached = CreateExecutionApi( - RemoteExecutionConfig::CacheAddress(), repo_config_); + auto api_cached = + CreateExecutionApi(RemoteExecutionConfig::CacheAddress(), + std::make_optional(repo_config_)); Rebuilder executor{repo_config_, &(*local_api_), &(*remote_api_), -- cgit v1.2.3