From 84c5821f85383b56d1522cefd297b4796b1ce93f Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Tue, 16 Jul 2024 04:29:29 -0500 Subject: [PATCH] Define alias for common cflags re implicit definitions --- environments/hlrs/spack.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/environments/hlrs/spack.yaml b/environments/hlrs/spack.yaml index dde7206..858d80a 100644 --- a/environments/hlrs/spack.yaml +++ b/environments/hlrs/spack.yaml @@ -4,6 +4,7 @@ spack: - core_compiler: [gcc@7.5] - compilers: [gcc@13.2, cce@18.0] - mpis: [cray-mpich@8.1.30] + - cflags_noerror_implicit: ['cflags="-Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=int-conversion"'] packages: all: prefer: ['%gcc@7.5'] @@ -14,7 +15,7 @@ spack: - [$%core_compiler] - matrix: - [mpip, extrae] - - ['cflags="-Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=int-conversion"'] + - [$cflags_noerror_implicit] # code is not fully C99 - [$^mpis] - [$%compilers] view: false