Skip to content

Commit

Permalink
Drop -g from test examples as debug symbols is off by default again
Browse files Browse the repository at this point in the history
  • Loading branch information
Micket committed Feb 20, 2025
1 parent 7acc5cc commit e0eb342
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/framework/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def test_toolchain_compiler_env_vars(self):
self.assertEqual(os.getenv('OMPI_F77'), 'gfortran')
self.assertEqual(os.getenv('OMPI_FC'), 'gfortran')

flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g")
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno")
for key in ['CFLAGS', 'CXXFLAGS', 'F90FLAGS', 'FCFLAGS', 'FFLAGS']:
val = os.getenv(key)
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
Expand Down Expand Up @@ -928,7 +928,7 @@ def test_precision_flags(self):
tc.set_options({})
with self.mocked_stdout_stderr():
tc.prepare()
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g")
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno")
for var in flag_vars:
val = os.getenv(var)
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
Expand Down Expand Up @@ -1363,7 +1363,7 @@ def test_fosscuda(self):
tc.prepare()

archflags = tc.COMPILER_OPTIMAL_ARCHITECTURE_OPTION[(tc.arch, tc.cpu_family)]
optflags = "-O2 -ftree-vectorize %s -fno-math-errno -g -fopenmp" % archflags
optflags = "-O2 -ftree-vectorize %s -fno-math-errno -fopenmp" % archflags
nvcc_flags = r' '.join([
r'-Xcompiler="%s"' % optflags,
# the use of -lcudart in -Xlinker is a bit silly but hard to avoid
Expand Down Expand Up @@ -2280,12 +2280,12 @@ def test_independence(self):
init_config(build_options={'optarch': custom_optarch, 'silent': True})

tc_cflags = {
'CrayCCE': "-O2 -g -homp -craype-verbose",
'CrayGNU': "-O2 -fno-math-errno -g -fopenmp -craype-verbose",
'CrayIntel': "-O2 -ftz -fp-speculation=safe -fp-model source -g -fopenmp -craype-verbose",
'GCC': "-O2 -ftree-vectorize -test -fno-math-errno -g -fopenmp",
'iccifort': "-O2 -test -ftz -fp-speculation=safe -fp-model source -g -fopenmp",
'intel-compilers': "-O2 -test -ftz -fp-speculation=safe -fp-model precise -g -qopenmp",
'CrayCCE': "-O2 -homp -craype-verbose",
'CrayGNU': "-O2 -fno-math-errno -fopenmp -craype-verbose",
'CrayIntel': "-O2 -ftz -fp-speculation=safe -fp-model source -fopenmp -craype-verbose",
'GCC': "-O2 -ftree-vectorize -test -fno-math-errno -fopenmp",
'iccifort': "-O2 -test -ftz -fp-speculation=safe -fp-model source -fopenmp",
'intel-compilers': "-O2 -test -ftz -fp-speculation=safe -fp-model precise -qopenmp",
}

toolchains = [
Expand Down

0 comments on commit e0eb342

Please sign in to comment.