diff options
author | t-karatsu <49965247+t-karatsu@users.noreply.github.com> | 2019-07-18 01:49:36 +0900 |
---|---|---|
committer | Chuck Atkins <chuck.atkins@kitware.com> | 2019-07-17 12:49:36 -0400 |
commit | 5d9e67d9535ee9db663fb953b115a79b73da237a (patch) | |
tree | 69fbb1b8159d00a2951d2975def6ab4b0bb55fd2 /var | |
parent | 1b16be538e2d367ade48225c8c5150ebd9ed3ab9 (diff) | |
download | spack-5d9e67d9535ee9db663fb953b115a79b73da237a.tar.gz spack-5d9e67d9535ee9db663fb953b115a79b73da237a.tar.bz2 spack-5d9e67d9535ee9db663fb953b115a79b73da237a.tar.xz spack-5d9e67d9535ee9db663fb953b115a79b73da237a.zip |
Cmake/add option for fujitsu compiler (#11839)
* cmake: change c++ spec when building with Fujitsu compiler.
* cmake: define cxxflags using a Fujitsu compiler's method.
* cmake: Add condition of whether to add cxx11 option.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cmake/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py index 00f6ba89b3..cef48968ec 100644 --- a/var/spack/repos/builtin/packages/cmake/package.py +++ b/var/spack/repos/builtin/packages/cmake/package.py @@ -110,6 +110,12 @@ class Cmake(Package): phases = ['bootstrap', 'build', 'install'] + def setup_environment(self, spack_env, run_env): + if self.compiler.name == 'fj' \ + and self.compiler.cxx11_flag \ + not in self.spec.compiler_flags['cxxflags']: + spack_env.append_flags('CXXFLAGS', self.compiler.cxx11_flag) + def bootstrap_args(self): spec = self.spec args = [ |