[Score-P] Make local with-or-without not use "yes" (#43701)

Score-P does not accept "--with-foo=yes", but only "--with-foo" or "--with-foo=some-valid-specific-choice-or-path". This keeps Spack from generating config flags that will cause Score-P to barf.
This commit is contained in:
Bill Williams 2024-04-17 18:32:47 +02:00 committed by GitHub
parent eefe0b2eec
commit 1bf92c7881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,6 +153,9 @@ def find_libpath(self, libname, root):
return None
return libs.directories[0]
def with_or_without(self, arg):
return super.with_or_without(arg).remove_suffix("=yes")
def configure_args(self):
spec = self.spec