aboutsummaryrefslogtreecommitdiff
path: root/build2/c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-09-03 10:18:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-09-03 10:18:23 +0200
commitcafa730ce5e1b13135ccbdc0befa58d693302999 (patch)
treed6d63760881b6813a3dee9434cdc1b1c42ae4d92 /build2/c
parent1bf439f7918f2c6f8fa07db3abb53722156945c7 (diff)
Use (native) C and C++ compilers we were built with as defaults
Diffstat (limited to 'build2/c')
-rw-r--r--build2/c/init.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/build2/c/init.cxx b/build2/c/init.cxx
index 63043d7..56b3f02 100644
--- a/build2/c/init.cxx
+++ b/build2/c/init.cxx
@@ -13,6 +13,14 @@
#include <build2/c/target.hxx>
+#ifndef BUILD2_DEFAULT_C
+# ifdef BUILD2_NATIVE_C
+# define BUILD2_DEFAULT_C BUILD2_NATIVE_C
+# else
+# define BUILD2_DEFAULT_C ""
+# endif
+#endif
+
using namespace std;
using namespace butl;
@@ -145,7 +153,7 @@ namespace build2
"c",
"c",
- "gcc",
+ BUILD2_DEFAULT_C,
".i",
hinters,