diff options
author | luker <luke.roskop@hpe.com> | 2022-03-23 03:19:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 09:19:01 +0100 |
commit | 5afdccba06d8e8afc8f54541837fdd576219a950 (patch) | |
tree | f5888836335431631e1ac8552f3a0ab854e67b5a | |
parent | 49498af9ec7f65cfb71efac4d9e2bab8c9b6924e (diff) | |
download | spack-5afdccba06d8e8afc8f54541837fdd576219a950.tar.gz spack-5afdccba06d8e8afc8f54541837fdd576219a950.tar.bz2 spack-5afdccba06d8e8afc8f54541837fdd576219a950.tar.xz spack-5afdccba06d8e8afc8f54541837fdd576219a950.zip |
variorum: update package for CCE (#29656)
CCE needs additional compiler flags.
-rw-r--r-- | var/spack/repos/builtin/packages/variorum/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/variorum/package.py b/var/spack/repos/builtin/packages/variorum/package.py index 5d189c412d..8fba46ae4a 100644 --- a/var/spack/repos/builtin/packages/variorum/package.py +++ b/var/spack/repos/builtin/packages/variorum/package.py @@ -54,6 +54,11 @@ class Variorum(CMakePackage): cmake_args.append('-DJANSSON_DIR={0}'.format(spec['jansson'].prefix)) + if spec.satisfies('%cce'): + cmake_args.append('-DCMAKE_C_FLAGS=-fcommon') + cmake_args.append('-DCMAKE_CCC_FLAGS=-fcommon') + cmake_args.append('-DCMAKE_Fortran_FLAGS=-ef') + if "+shared" in spec: cmake_args.append("-DBUILD_SHARED_LIBS=ON") else: |