From cafa730ce5e1b13135ccbdc0befa58d693302999 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Sep 2018 10:18:23 +0200 Subject: Use (native) C and C++ compilers we were built with as defaults --- build2/c/init.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build2/c') 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 +#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, -- cgit v1.1