summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQian Jianhua <qianjh@fujitsu.com>2022-03-08 09:15:08 +0800
committerGitHub <noreply@github.com>2022-03-07 17:15:08 -0800
commitcc1438481856097f7b62524a1bec3c6c14316faf (patch)
treed8147a28a3eff541092907f831725f758d7db12f
parent3d29e0d64139e11b0551eae8a25dd9f1232515e1 (diff)
downloadspack-cc1438481856097f7b62524a1bec3c6c14316faf.tar.gz
spack-cc1438481856097f7b62524a1bec3c6c14316faf.tar.bz2
spack-cc1438481856097f7b62524a1bec3c6c14316faf.tar.xz
spack-cc1438481856097f7b62524a1bec3c6c14316faf.zip
sfcio: support Fujitsu compiler (#29364)
-rw-r--r--var/spack/repos/builtin/packages/sfcio/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sfcio/package.py b/var/spack/repos/builtin/packages/sfcio/package.py
index 0b0e3d67ad..30ab34259b 100644
--- a/var/spack/repos/builtin/packages/sfcio/package.py
+++ b/var/spack/repos/builtin/packages/sfcio/package.py
@@ -25,3 +25,9 @@ class Sfcio(CMakePackage):
for suffix in ('4', ''):
env.set('SFCIO_LIB' + suffix, lib[0])
env.set('SFCIO_INC' + suffix, join_path(self.prefix, 'include'))
+
+ def flag_handler(self, name, flags):
+ if self.spec.satisfies('%fj'):
+ if name == 'fflags':
+ flags.append('-Free')
+ return (None, None, flags)