@@ -388,7 +388,7 @@ def test_toolchain_compiler_env_vars(self):
388
388
self .assertEqual (os .getenv ('OMPI_F77' ), 'gfortran' )
389
389
self .assertEqual (os .getenv ('OMPI_FC' ), 'gfortran' )
390
390
391
- flags_regex = re .compile (r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g " )
391
+ flags_regex = re .compile (r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno" )
392
392
for key in ['CFLAGS' , 'CXXFLAGS' , 'F90FLAGS' , 'FCFLAGS' , 'FFLAGS' ]:
393
393
val = os .getenv (key )
394
394
self .assertTrue (flags_regex .match (val ), "'%s' should match pattern '%s'" % (val , flags_regex .pattern ))
@@ -928,7 +928,7 @@ def test_precision_flags(self):
928
928
tc .set_options ({})
929
929
with self .mocked_stdout_stderr ():
930
930
tc .prepare ()
931
- flags_regex = re .compile (r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g " )
931
+ flags_regex = re .compile (r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno" )
932
932
for var in flag_vars :
933
933
val = os .getenv (var )
934
934
self .assertTrue (flags_regex .match (val ), "'%s' should match pattern '%s'" % (val , flags_regex .pattern ))
@@ -1363,7 +1363,7 @@ def test_fosscuda(self):
1363
1363
tc .prepare ()
1364
1364
1365
1365
archflags = tc .COMPILER_OPTIMAL_ARCHITECTURE_OPTION [(tc .arch , tc .cpu_family )]
1366
- optflags = "-O2 -ftree-vectorize %s -fno-math-errno -g - fopenmp" % archflags
1366
+ optflags = "-O2 -ftree-vectorize %s -fno-math-errno -fopenmp" % archflags
1367
1367
nvcc_flags = r' ' .join ([
1368
1368
r'-Xcompiler="%s"' % optflags ,
1369
1369
# the use of -lcudart in -Xlinker is a bit silly but hard to avoid
@@ -2280,12 +2280,12 @@ def test_independence(self):
2280
2280
init_config (build_options = {'optarch' : custom_optarch , 'silent' : True })
2281
2281
2282
2282
tc_cflags = {
2283
- 'CrayCCE' : "-O2 -g - homp -craype-verbose" ,
2284
- 'CrayGNU' : "-O2 -fno-math-errno -g - fopenmp -craype-verbose" ,
2285
- 'CrayIntel' : "-O2 -ftz -fp-speculation=safe -fp-model source -g - fopenmp -craype-verbose" ,
2286
- 'GCC' : "-O2 -ftree-vectorize -test -fno-math-errno -g - fopenmp" ,
2287
- 'iccifort' : "-O2 -test -ftz -fp-speculation=safe -fp-model source -g - fopenmp" ,
2288
- 'intel-compilers' : "-O2 -test -ftz -fp-speculation=safe -fp-model precise -g - qopenmp" ,
2283
+ 'CrayCCE' : "-O2 -homp -craype-verbose" ,
2284
+ 'CrayGNU' : "-O2 -fno-math-errno -fopenmp -craype-verbose" ,
2285
+ 'CrayIntel' : "-O2 -ftz -fp-speculation=safe -fp-model source -fopenmp -craype-verbose" ,
2286
+ 'GCC' : "-O2 -ftree-vectorize -test -fno-math-errno -fopenmp" ,
2287
+ 'iccifort' : "-O2 -test -ftz -fp-speculation=safe -fp-model source -fopenmp" ,
2288
+ 'intel-compilers' : "-O2 -test -ftz -fp-speculation=safe -fp-model precise -qopenmp" ,
2289
2289
}
2290
2290
2291
2291
toolchains = [
0 commit comments