remove non-existent when kwarg (#44437)

Not sure why this was added, it is ignored.
This commit is contained in:
Harmen Stoppels 2024-05-29 20:39:37 +02:00 committed by GitHub
parent 230687a501
commit abfff43976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 16 deletions

View File

@ -274,18 +274,8 @@ def patch(self):
# The parallel compiler wrappers (i.e. h5pcc, h5pfc, etc.) reference MPI
# compiler wrappers and do not need to be changed.
# These do not exist on Windows.
# Enable only for supported target platforms.
for spack_spec_target_platform in ["linux", "darwin", "cray"]:
filter_compiler_wrappers(
"h5cc",
"h5hlcc",
"h5fc",
"h5hlfc",
"h5c++",
"h5hlc++",
relative_root="bin",
when=f"platform={spack_spec_target_platform}",
"h5cc", "h5hlcc", "h5fc", "h5hlfc", "h5c++", "h5hlc++", relative_root="bin"
)
def url_for_version(self, version):

View File

@ -56,9 +56,7 @@ class Tcl(AutotoolsPackage, NMakePackage, SourceforgePackage, TclHelper):
depends_on("zlib-api")
# No compiler wrappers on Windows
for plat in ["linux", "darwin", "cray", "freebsd"]:
filter_compiler_wrappers("tclConfig.sh", relative_root="lib", when=f"platform={plat}")
filter_compiler_wrappers("tclConfig.sh", relative_root="lib")
build_system("autotools", "nmake")
patch("tcl-quote-cc-path.patch", when="platform=windows")