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/cc | |
parent | 85399cf60764b0fe54d44d4a5bacb54feae8dd62 (diff) |
Constrain access to options to build system driver main() only
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/module.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<string> (3, - ops.config_sub (), + *config_sub, ci.target.c_str (), [] (string& l, bool) {return move (l);}); l5 ([&]{trace << "config.sub target: '" << ct << "'";}); |