diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-10 11:51:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-10 11:51:24 +0200 |
commit | 6362c4e4eda8340eedc73dfdbf6b92b281ccbadd (patch) | |
tree | c4878757293cc61398e257b96b0a30914e85e3a6 /build2/b.cxx | |
parent | a81d3fb9160b3032124bdc58e76619b724ccdb6c (diff) |
Implement support for wildcard patterns
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index 2ada09b..15ace65 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -321,6 +321,11 @@ main (int argc, char* argv[]) trace << "jobs: " << jobs; } + // Set the build state before parsing the buildspec since it relies on + // global scope being setup. + // + variable_overrides var_ovs (reset (cmd_vars)); + // Parse the buildspec. // buildspec bspec; @@ -349,8 +354,7 @@ main (int argc, char* argv[]) // opspec* lifted (nullptr); size_t skip (0); - bool dirty (true); - variable_overrides var_ovs; + bool dirty (false); // We already (re)set for the first run. for (auto mit (bspec.begin ()); mit != bspec.end (); ) { |