From ca439c62d35d587c90230894ec0d1b002ba8c639 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 14 Jan 2023 16:53:40 +0100 Subject: Support using custom ar tool, through AR env in bootstrap. --- src/bootstrap.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bootstrap.cc b/src/bootstrap.cc index 0604527..bb2d45f 100644 --- a/src/bootstrap.cc +++ b/src/bootstrap.cc @@ -48,6 +48,12 @@ const std::string& ctor::configuration::get(const std::string& key, const std::s return s; } + if(key == ctor::cfg::host_ar && std::getenv("AR")) + { + static std::string s = std::getenv("AR"); + return s; + } + if(key == ctor::cfg::builddir && std::getenv("BUILDDIR")) { static std::string s = std::getenv("BUILDDIR"); -- cgit v1.2.3