diff options
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 << "'";}); |