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.
This commit is contained in:
t-karatsu 2019-07-18 01:49:36 +09:00 committed by Chuck Atkins
parent 1b16be538e
commit 5d9e67d953

View file

@ -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 = [