llvm: reformulate a when condition to avoid tautology (#41461)
The condition on swig can be interpreted as "true if true, false if false" and gives clingo the option to add swig or not. If not other optimization criteria break the tie, then the concretization is non-deterministic.
This commit is contained in:
parent
b522d8f610
commit
5404a5bb82
@ -308,8 +308,8 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
depends_on("swig", when="+python")
|
depends_on("swig", when="+python")
|
||||||
depends_on("xz")
|
depends_on("xz")
|
||||||
|
|
||||||
# Use ^swig cause it's triggered by both python & lua scripting in lldb
|
for _when_spec in ("+lldb+python", "+lldb+lua"):
|
||||||
with when("^swig"):
|
with when(_when_spec):
|
||||||
depends_on("swig@2:", when="@10:")
|
depends_on("swig@2:", when="@10:")
|
||||||
depends_on("swig@3:", when="@12:")
|
depends_on("swig@3:", when="@12:")
|
||||||
depends_on("swig@4:", when="@17:")
|
depends_on("swig@4:", when="@17:")
|
||||||
|
Loading…
Reference in New Issue
Block a user