aboutsummaryrefslogtreecommitdiff
path: root/build2/bin
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-06-24 11:25:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-06-24 11:25:05 +0200
commit2ad6aa134d9e8e755c8c738d0b51d72b0851c212 (patch)
tree9d914797975e61350d41c9fdb71ee008b2aacdfc /build2/bin
parent85399cf60764b0fe54d44d4a5bacb54feae8dd62 (diff)
Constrain access to options to build system driver main() only
Diffstat (limited to 'build2/bin')
-rw-r--r--build2/bin/init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/bin/init.cxx b/build2/bin/init.cxx
index 3a91646..cf47fbe 100644
--- a/build2/bin/init.cxx
+++ b/build2/bin/init.cxx
@@ -296,10 +296,10 @@ namespace build2
// Did the user ask us to use config.sub? If this is a hinted value,
// then we assume it has already been passed through config.sub.
//
- if (!hint && ops.config_sub_specified ())
+ if (!hint && config_sub)
{
s = run<string> (3,
- ops.config_sub (),
+ *config_sub,
s.c_str (),
[] (string& l, bool) {return move (l);});
l5 ([&]{trace << "config.sub target: '" << s << "'";});