From 2ad6aa134d9e8e755c8c738d0b51d72b0851c212 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jun 2019 11:25:05 +0200 Subject: Constrain access to options to build system driver main() only --- build2/bin/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/bin') 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 (3, - ops.config_sub (), + *config_sub, s.c_str (), [] (string& l, bool) {return move (l);}); l5 ([&]{trace << "config.sub target: '" << s << "'";}); -- cgit v1.1