diff options
author | Thomas-Ulrich <ulrich@geophysik.uni-muenchen.de> | 2024-10-22 04:44:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 04:44:14 +0200 |
commit | b582eacbc13a1d6ca10882088d150b5a8d410fdd (patch) | |
tree | 615dd6060df7ef84fe2dbc10eb2244f1b53039c9 /var | |
parent | 037196c2bd313f74b08aafa71f4a57f93bcb5ff7 (diff) | |
download | spack-b582eacbc13a1d6ca10882088d150b5a8d410fdd.tar.gz spack-b582eacbc13a1d6ca10882088d150b5a8d410fdd.tar.bz2 spack-b582eacbc13a1d6ca10882088d150b5a8d410fdd.tar.xz spack-b582eacbc13a1d6ca10882088d150b5a8d410fdd.zip |
fix unzip%nvhpc (#47109)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/unzip/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/unzip/package.py b/var/spack/repos/builtin/packages/unzip/package.py index 8616b3630d..f04dee4f8c 100644 --- a/var/spack/repos/builtin/packages/unzip/package.py +++ b/var/spack/repos/builtin/packages/unzip/package.py @@ -28,8 +28,9 @@ class Unzip(MakefilePackage): make_args = ["-f", join_path("unix", "Makefile")] cflags = [] - cflags.append("-Wno-error=implicit-function-declaration") - cflags.append("-Wno-error=implicit-int") + if not self.spec.satisfies("%nvhpc"): + cflags.append("-Wno-error=implicit-function-declaration") + cflags.append("-Wno-error=implicit-int") cflags.append("-DLARGE_FILE_SUPPORT") make_args.append(f"LOC={' '.join(cflags)}") |