Fix pigz%nvhpc build (#31227)

nvc doesn't know this flag: `-Wno-unknown-pragmas`, it doesn't hurt to
remove the specific warning flags, from:

```
-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual
```

to:

```
-O3 -Wall
```
This commit is contained in:
Harmen Stoppels 2022-06-27 14:41:40 +02:00 committed by GitHub
parent f09f834a8f
commit 5698846619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class Pigz(MakefilePackage):
def build(self, spec, prefix):
# force makefile to use cc as C compiler which is set by
# spack
make('CC=cc')
make('CC=cc', 'CFLAGS=-O3 -Wall')
def install(self, spec, prefix):
mkdirp(prefix.bin)