diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 11:25:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 11:25:05 +0200 |
commit | 2ad6aa134d9e8e755c8c738d0b51d72b0851c212 (patch) | |
tree | 9d914797975e61350d41c9fdb71ee008b2aacdfc /build2/context.cxx | |
parent | 85399cf60764b0fe54d44d4a5bacb54feae8dd62 (diff) |
Constrain access to options to build system driver main() only
Diffstat (limited to 'build2/context.cxx')
-rw-r--r-- | build2/context.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/build2/context.cxx b/build2/context.cxx index a4ff001..e71201d 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -494,12 +494,11 @@ namespace build2 { // Did the user ask us to use config.guess? // - string orig ( - ops.config_guess_specified () - ? run<string> (3, - ops.config_guess (), - [](string& l, bool) {return move (l);}) - : BUILD2_HOST_TRIPLET); + string orig (config_guess + ? run<string> (3, + *config_guess, + [](string& l, bool) {return move (l);}) + : BUILD2_HOST_TRIPLET); l5 ([&]{trace << "original host: '" << orig << "'";}); |