Skip to content

Commit 404ee12

Browse files
authored
Merge pull request #3713 from migueldiascosta/fujitsu_Nclang
move -Nclang back to $C[XX]FLAGS in toolchain support for Fujitsu compiler
2 parents b3937ac + 0610e4e commit 404ee12

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

easybuild/toolchains/compiler/fujitsu.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ class FujitsuCompiler(Compiler):
4747
COMPILER_MODULE_NAME = [TC_CONSTANT_MODULE_NAME]
4848
COMPILER_FAMILY = TC_CONSTANT_FUJITSU
4949

50-
# make sure fcc is always called in clang compatibility mode
51-
COMPILER_CC = 'fcc -Nclang'
52-
COMPILER_CXX = 'FCC -Nclang'
50+
COMPILER_CC = 'fcc'
51+
COMPILER_CXX = 'FCC'
5352

5453
COMPILER_F77 = 'frt'
5554
COMPILER_F90 = 'frt'
@@ -98,9 +97,8 @@ def _set_compiler_vars(self):
9897
super(FujitsuCompiler, self)._set_compiler_vars()
9998

10099
# enable clang compatibility mode
101-
# moved to compiler constants to make sure it is always used
102-
# self.variables.nappend('CFLAGS', ['Nclang'])
103-
# self.variables.nappend('CXXFLAGS', ['Nclang'])
100+
self.variables.nappend('CFLAGS', ['Nclang'])
101+
self.variables.nappend('CXXFLAGS', ['Nclang'])
104102

105103
# also add fujitsu module library path to LDFLAGS
106104
libdir = os.path.join(os.getenv(TC_CONSTANT_MODULE_VAR), 'lib64')

0 commit comments

Comments
 (0)