aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-07 18:09:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-07 18:09:44 +0200
commite2ba7fa123213fcc5673119b8d993d7967a1fb24 (patch)
tree22b545150af90ec2831a2665afbac9b19828e65f /build2/b.cxx
parentd01c30fa81a849ea7545b8235656eb1dcbba877b (diff)
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
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 95bf876..0520bd8 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -333,9 +333,11 @@ main (int argc, char* argv[])
bm["cc.config"] = mf {nullptr, &cc::config_init};
bm["cc"] = mf {nullptr, &cc::init};
+ bm["c.guess"] = mf {nullptr, &c::guess_init};
bm["c.config"] = mf {nullptr, &c::config_init};
bm["c"] = mf {nullptr, &c::init};
+ bm["cxx.guess"] = mf {nullptr, &cxx::guess_init};
bm["cxx.config"] = mf {nullptr, &cxx::config_init};
bm["cxx"] = mf {nullptr, &cxx::init};