diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-07 18:09:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-07 18:09:44 +0200 |
commit | e2ba7fa123213fcc5673119b8d993d7967a1fb24 (patch) | |
tree | 22b545150af90ec2831a2665afbac9b19828e65f /build2/cxx/init.hxx | |
parent | d01c30fa81a849ea7545b8235656eb1dcbba877b (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/cxx/init.hxx')
-rw-r--r-- | build2/cxx/init.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build2/cxx/init.hxx b/build2/cxx/init.hxx index 5ba4041..a952bf8 100644 --- a/build2/cxx/init.hxx +++ b/build2/cxx/init.hxx @@ -15,6 +15,15 @@ namespace build2 namespace cxx { bool + guess_init (scope&, + scope&, + const location&, + unique_ptr<module_base>&, + bool, + bool, + const variable_map&); + + bool config_init (scope&, scope&, const location&, |