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:
parent
ca5f713282
commit
49b1c0df2b
@ -475,10 +475,10 @@ def __init__(self, spec):
|
|||||||
|
|
||||||
def satisfies(self, other, strict=False):
|
def satisfies(self, other, strict=False):
|
||||||
if strict or (self.spec and self.spec._concrete):
|
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)
|
for f in other)
|
||||||
else:
|
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))
|
for f in other if (other[f] != [] and f in self))
|
||||||
|
|
||||||
def constrain(self, other):
|
def constrain(self, other):
|
||||||
|
Loading…
Reference in New Issue
Block a user