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/cc/module.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc') diff --git a/build2/cc/module.cxx b/build2/cc/module.cxx index 00c5aa9..7ea790b 100644 --- a/build2/cc/module.cxx +++ b/build2/cc/module.cxx @@ -138,10 +138,10 @@ namespace build2 { string ct; - if (ops.config_sub_specified ()) + if (config_sub) { ct = run (3, - ops.config_sub (), + *config_sub, ci.target.c_str (), [] (string& l, bool) {return move (l);}); l5 ([&]{trace << "config.sub target: '" << ct << "'";}); -- cgit v1.1