Skip to content

Commit cbdcbbf

Browse files
committed
Add dashes for shared compiler flags
1 parent 1353f54 commit cbdcbbf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

easybuild/tools/toolchain/compiler.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ class Compiler(Toolchain):
105105

106106
COMPILER_UNIQUE_OPTION_MAP = None
107107
COMPILER_SHARED_OPTION_MAP = {
108-
DEFAULT_OPT_LEVEL: 'O2',
109-
'cstd': 'std=%(value)s',
110-
'debug': 'g',
111-
'lowopt': 'O1',
112-
'noopt': 'O0',
113-
'openmp': 'fopenmp',
114-
'opt': 'O3',
115-
'pic': 'fPIC',
116-
'shared': 'shared',
117-
'static': 'static',
118-
'unroll': 'unroll',
119-
'verbose': 'v',
108+
DEFAULT_OPT_LEVEL: '-O2',
109+
'cstd': '-std=%(value)s',
110+
'debug': '-g',
111+
'lowopt': '-O1',
112+
'noopt': '-O0',
113+
'openmp': '-fopenmp',
114+
'opt': '-O3',
115+
'pic': '-fPIC',
116+
'shared': '-shared',
117+
'static': '-static',
118+
'unroll': '-unroll',
119+
'verbose': '-v',
120120
'extra_cflags': '%(value)s',
121121
'extra_cxxflags': '%(value)s',
122122
'extra_fflags': '%(value)s',
@@ -133,13 +133,13 @@ class Compiler(Toolchain):
133133

134134
COMPILER_CC = None
135135
COMPILER_CXX = None
136-
COMPILER_C_FLAGS = ['cstd']
136+
COMPILER_C_FLAGS = ['-cstd']
137137
COMPILER_C_UNIQUE_FLAGS = []
138138

139139
COMPILER_F77 = None
140140
COMPILER_F90 = None
141141
COMPILER_FC = None
142-
COMPILER_F_FLAGS = ['i8', 'r8']
142+
COMPILER_F_FLAGS = ['-i8', '-r8']
143143
COMPILER_F_UNIQUE_FLAGS = []
144144

145145
LINKER_TOGGLE_STATIC_DYNAMIC = None

0 commit comments

Comments
 (0)