Skip to content

Commit e0eb342

Browse files
committed
Drop -g from test examples as debug symbols is off by default again
1 parent 7acc5cc commit e0eb342

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/framework/toolchain.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def test_toolchain_compiler_env_vars(self):
388388
self.assertEqual(os.getenv('OMPI_F77'), 'gfortran')
389389
self.assertEqual(os.getenv('OMPI_FC'), 'gfortran')
390390

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")
392392
for key in ['CFLAGS', 'CXXFLAGS', 'F90FLAGS', 'FCFLAGS', 'FFLAGS']:
393393
val = os.getenv(key)
394394
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
@@ -928,7 +928,7 @@ def test_precision_flags(self):
928928
tc.set_options({})
929929
with self.mocked_stdout_stderr():
930930
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")
932932
for var in flag_vars:
933933
val = os.getenv(var)
934934
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
@@ -1363,7 +1363,7 @@ def test_fosscuda(self):
13631363
tc.prepare()
13641364

13651365
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
13671367
nvcc_flags = r' '.join([
13681368
r'-Xcompiler="%s"' % optflags,
13691369
# the use of -lcudart in -Xlinker is a bit silly but hard to avoid
@@ -2280,12 +2280,12 @@ def test_independence(self):
22802280
init_config(build_options={'optarch': custom_optarch, 'silent': True})
22812281

22822282
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",
22892289
}
22902290

22912291
toolchains = [

0 commit comments

Comments
 (0)