From e2ba7fa123213fcc5673119b8d993d7967a1fb24 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Sep 2017 18:09:44 +0200 Subject: Implement {c,cxx}.guess modules These can be loaded before {c,cxx} to guess the compiler. Based on this information we can then choose the standard, experimental features, etc. For example: using cxx.guess if ($cxx.id == 'clang') cxx.features.modules = false cxx.std = experimental using cxx --- build2/c/init.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/c/init.hxx') diff --git a/build2/c/init.hxx b/build2/c/init.hxx index e18a5df..5fd7c84 100644 --- a/build2/c/init.hxx +++ b/build2/c/init.hxx @@ -15,6 +15,15 @@ namespace build2 namespace c { bool + guess_init (scope&, + scope&, + const location&, + unique_ptr&, + bool, + bool, + const variable_map&); + + bool config_init (scope&, scope&, const location&, -- cgit v1.1