diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-14 17:20:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-14 17:20:02 +0200 |
commit | e20a351013745e8d6c3a0a99bd40c172ed0ae8be (patch) | |
tree | b0e6d24dbc097c2001e6bb4b0c0357bcb83bdc72 /build2/scope.hxx | |
parent | d1b3ad7b302d037c8154bab9c4810d499c0bf1e4 (diff) |
Add support for multiple variable overrides
Now we can do:
$ b config.cxx.coptions=-O3 config.cxx.coptions=-O0
Or even:
$ b config.cxx.coptions=-O3 config.cxx.coptions+=-g
Diffstat (limited to 'build2/scope.hxx')
-rw-r--r-- | build2/scope.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scope.hxx b/build2/scope.hxx index 6e48de3..cfb3d24 100644 --- a/build2/scope.hxx +++ b/build2/scope.hxx @@ -125,7 +125,7 @@ namespace build2 const string* tn = nullptr) const { auto p (find_original (var, tt, tn)); - return var.override == nullptr ? p : find_override (var, move (p)); + return var.overrides == nullptr ? p : find_override (var, move (p)); } // Implementation details (used by scope target lookup). The start_depth |