diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-20 15:30:21 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-20 15:30:21 +0300 |
commit | 2508d4d0e05ef55beb3a4db52aa01424eedb4226 (patch) | |
tree | 077d8e9e2f8686ae081fd4bebfe146cf8ebb5788 /mod/build-config.cxx | |
parent | f3e05fd089e3845ee0c11af7d3b27d40d08ab119 (diff) |
Make package manifest build inclusions and exclusions order significant
Diffstat (limited to 'mod/build-config.cxx')
-rw-r--r-- | mod/build-config.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mod/build-config.cxx b/mod/build-config.cxx index ecbcf6f..1ac4939 100644 --- a/mod/build-config.cxx +++ b/mod/build-config.cxx @@ -160,14 +160,8 @@ namespace brep { for (const auto& bc: p.constraints) { - if (!bc.exclusion && match (bc.config, bc.target, c)) - return false; - } - - for (const auto& bc: p.constraints) - { - if (bc.exclusion && match (bc.config, bc.target, c)) - return true; + if (match (bc.config, bc.target, c)) + return bc.exclusion; } return false; |