summaryrefslogtreecommitdiff
path: root/src/bootstrap.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-12-15 11:05:31 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-09 17:22:54 +0100
commit55ab1f564286c6f3e986bf68ebb271132a749c6f (patch)
treebf6b35923b3a2e85cb061c78ea929ff58933c720 /src/bootstrap.cc
parentde26eed5157a1b5efc2a72668b4f4a22638f2774 (diff)
Add clang support.
Diffstat (limited to 'src/bootstrap.cc')
-rw-r--r--src/bootstrap.cc7
1 files changed, 7 insertions, 0 deletions
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 <iostream>
#include <array>
+#include <cstdlib>
#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;
}