From 2f7589adc41f3bf0b2690a8b647f30ec464a9352 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Thu, 7 Mar 2019 14:08:36 -0700 Subject: [PATCH] cloverleaf: overwrite flags (#10829) --- var/spack/repos/builtin/packages/cloverleaf/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/var/spack/repos/builtin/packages/cloverleaf/package.py b/var/spack/repos/builtin/packages/cloverleaf/package.py index 972905ab89..144059127a 100644 --- a/var/spack/repos/builtin/packages/cloverleaf/package.py +++ b/var/spack/repos/builtin/packages/cloverleaf/package.py @@ -62,14 +62,24 @@ def build_targets(self): if '%gcc' in self.spec: targets.append('COMPILER=GNU') + targets.append('FLAGS_GNU=') + targets.append('CFLAGS_GNU=') elif '%cce' in self.spec: targets.append('COMPILER=CRAY') + targets.append('FLAGS_CRAY=') + targets.append('CFLAGS_CRAY=') elif '%intel' in self.spec: targets.append('COMPILER=INTEL') + targets.append('FLAGS_INTEL=') + targets.append('CFLAGS_INTEL=') elif '%pgi' in self.spec: targets.append('COMPILER=PGI') + targets.append('FLAGS_PGI=') + targets.append('CFLAGS_PGI=') elif '%xl' in self.spec: targets.append('COMPILER=XLF') + targets.append('FLAGS_XLF=') + targets.append('CFLAGS_XLF=') return targets