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:
		| @@ -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 = [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 t-karatsu
					t-karatsu