diff options
author | becker33 <becker33@llnl.gov> | 2016-11-06 15:32:05 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-11-06 15:32:05 -0800 |
commit | 49b1c0df2b8d760b467bce44164c66463d58b1a0 (patch) | |
tree | 577b8be206ff5f17a186962d4af4c498ab5ce908 | |
parent | ca5f71328210c292aa5277235476f3ea6160b18a (diff) | |
download | spack-49b1c0df2b8d760b467bce44164c66463d58b1a0.tar.gz spack-49b1c0df2b8d760b467bce44164c66463d58b1a0.tar.bz2 spack-49b1c0df2b8d760b467bce44164c66463d58b1a0.tar.xz spack-49b1c0df2b8d760b467bce44164c66463d58b1a0.zip |
Changed cflag matching to exact rather than subset. (#2227)
Not the desired eventual behavior, but cflag subset matching is not currently working for anonymous specs and this provides a temporary solution by restricting the feature until it is fixed.
-rw-r--r-- | lib/spack/spack/spec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index f830b73fa0..951e9ae652 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -475,10 +475,10 @@ class FlagMap(HashableMap): def satisfies(self, other, strict=False): if strict or (self.spec and self.spec._concrete): - return all(f in self and set(self[f]) <= set(other[f]) + return all(f in self and set(self[f]) == set(other[f]) for f in other) else: - return all(set(self[f]) <= set(other[f]) + return all(set(self[f]) == set(other[f]) for f in other if (other[f] != [] and f in self)) def constrain(self, other): |