aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-30 10:23:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-30 10:23:27 +0200
commit49fd34cb82d8edae683526a5d9fdd3c86136e646 (patch)
treee5e21a1d451e813ae18033066002019998ba5b76 /build2/cc/module.hxx
parentac379d5c0a7d8a7382649f3988eb86474d5e4a13 (diff)
Rework C/C++ standard translation in preparation for experimental/modules
Also fix bug in clang-apple versioning.
Diffstat (limited to 'build2/cc/module.hxx')
-rw-r--r--build2/cc/module.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/build2/cc/module.hxx b/build2/cc/module.hxx
index eaa82eb..db17998 100644
--- a/build2/cc/module.hxx
+++ b/build2/cc/module.hxx
@@ -32,13 +32,14 @@ namespace build2
void
init (scope&, const location&, const variable_map&);
- // Translate the x.std value to the standard-selecting option if there
- // is any.
+ // Translate the x.std value (if any) to the standard-selecting
+ // option(s) (if any). May also check/set x.features.* variables on the
+ // root scope.
//
- virtual string
- translate_std (const compiler_info&, scope&, const string&) const = 0;
+ virtual strings
+ translate_std (const compiler_info&, scope&, const string*) const = 0;
- string tstd;
+ strings tstd;
compiler_id::value_type cid;