From db73844a1e11787025a8642f69a52b5f9c87aea2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Jul 2020 08:05:41 +0200 Subject: Fold translated *.std options into compiler mode options This way they are accessible in ad hoc recipes. --- libbuild2/cc/module.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2/cc/module.hxx') diff --git a/libbuild2/cc/module.hxx b/libbuild2/cc/module.hxx index 28e8d51..81456b3 100644 --- a/libbuild2/cc/module.hxx +++ b/libbuild2/cc/module.hxx @@ -44,17 +44,17 @@ namespace build2 init (scope&, const location&, const variable_map&); // 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. + // option(s) (if any) and fold them (normally by pre-pending) into the + // compiler mode options. This function may also check/set x.features.* + // variables on the root scope. // - virtual strings + virtual void translate_std (const compiler_info&, const target_triplet&, scope&, + strings&, const string*) const = 0; - strings tstd; - const compiler_info* x_info; // Temporary storage for data::sys_*_dirs_*. -- cgit v1.1