summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildtool/main/build_utils.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/buildtool/main/build_utils.hpp b/src/buildtool/main/build_utils.hpp
index 961b5c09..2ea69025 100644
--- a/src/buildtool/main/build_utils.hpp
+++ b/src/buildtool/main/build_utils.hpp
@@ -34,7 +34,6 @@
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
#include "src/buildtool/multithreading/async_map_consumer.hpp"
-#include "src/buildtool/storage/storage.hpp"
#include "src/buildtool/storage/target_cache.hpp"
#endif // BOOTSTRAP_BUILD_TOOL
@@ -71,9 +70,8 @@ using TargetCacheWriterMap =
extra_infos,
std::size_t jobs,
gsl::not_null<ApiBundle const*> const& apis,
- TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync,
- TargetCache<true> const& tc = Storage::Instance().TargetCache())
- -> TargetCacheWriterMap;
+ TargetCacheWriteStrategy strategy,
+ TargetCache<true> const& tc) -> TargetCacheWriterMap;
// use explicit cast to std::function to allow template deduction when used
static const std::function<std::string(Artifact::ObjectInfo const&)>
@@ -89,8 +87,8 @@ void WriteTargetCacheEntries(
extra_infos,
std::size_t jobs,
ApiBundle const& apis,
- TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync,
- TargetCache<true> const& tc = Storage::Instance().TargetCache(),
+ TargetCacheWriteStrategy strategy,
+ TargetCache<true> const& tc,
Logger const* logger = nullptr,
LogLevel log_level = LogLevel::Warning);
#endif // BOOTSTRAP_BUILD_TOOL