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:
parent
1b16be538e
commit
5d9e67d953
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,12 @@ class Cmake(Package):
|
||||||
|
|
||||||
phases = ['bootstrap', 'build', 'install']
|
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):
|
def bootstrap_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
args = [
|
args = [
|
||||||
|
|
Loading…
Reference in a new issue