summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 16:53:40 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 16:53:47 +0100
commitca439c62d35d587c90230894ec0d1b002ba8c639 (patch)
treeb337b6e3c9dd7996195292a4b7f3b45a379a7ce4
parentae4c99fb4fe7964b5972c145d066b3b4842ba1a1 (diff)
Support using custom ar tool, through AR env in bootstrap.
-rw-r--r--src/bootstrap.cc6
1 files changed, 6 insertions, 0 deletions
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");