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.
This commit is contained in:
becker33 2016-11-06 15:32:05 -08:00 committed by Todd Gamblin
parent ca5f713282
commit 49b1c0df2b

View File

@ -475,10 +475,10 @@ def __init__(self, spec):
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):