From 0d6f835ffb582296d24a8d1dd479e2703e075ee3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Oct 2019 14:05:03 +0200 Subject: Add ability to specify "compiler mode" options as part of config.{c,cxx} Such options are (normally) not overridden by buildfiles and are passed last (after cc.coptions and {c,cxx}.coptions) in the resulting command lines. They are also cross-hinted between config.c and config.cxx. For example: $ b config.cxx="g++ -m64" --- libbuild2/utility.ixx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/utility.ixx') diff --git a/libbuild2/utility.ixx b/libbuild2/utility.ixx index dcfd128..2846756 100644 --- a/libbuild2/utility.ixx +++ b/libbuild2/utility.ixx @@ -101,7 +101,7 @@ namespace build2 template inline bool - find_options (initializer_list os, + find_options (const initializer_list& os, T& s, const variable& var, bool ic) @@ -111,7 +111,7 @@ namespace build2 template inline bool - find_options (initializer_list os, + find_options (const initializer_list& os, T& s, const char* var, bool ic) @@ -135,7 +135,7 @@ namespace build2 template inline const string* - find_option_prefixes (initializer_list ps, + find_option_prefixes (const initializer_list& ps, T& s, const variable& var, bool ic) @@ -145,7 +145,7 @@ namespace build2 template inline const string* - find_option_prefixes (initializer_list ps, + find_option_prefixes (const initializer_list& ps, T& s, const char* var, bool ic) -- cgit v1.1