From 55ab1f564286c6f3e986bf68ebb271132a749c6f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 15 Dec 2022 11:05:31 +0100 Subject: Add clang support. --- src/bootstrap.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bootstrap.cc') diff --git a/src/bootstrap.cc b/src/bootstrap.cc index 9079092..c58c399 100644 --- a/src/bootstrap.cc +++ b/src/bootstrap.cc @@ -3,6 +3,7 @@ // See accompanying file LICENSE for details. #include #include +#include #define BOOTSTRAP @@ -35,6 +36,12 @@ bool hasConfiguration(const std::string& key) const std::string& getConfiguration(const std::string& key, const std::string& defaultValue) { + if(key == cfg::host_cxx && std::getenv("CXX")) + { + static std::string s = std::getenv("CXX"); + return s; + } + return defaultValue; } -- cgit v1.2.3