Skip to content

Commit fa19fed

Browse files
authored
Merge pull request #1972 from boutproject/remove-Og-from-debug-flags
Remove -Og from debug flags
2 parents 1da6fac + 509d791 commit fa19fed

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5928,8 +5928,10 @@ if test "$enable_debug" != ""; then :
59285928
{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling all debug options" >&5
59295929
$as_echo "$as_me: Enabling all debug options" >&6;}
59305930
enable_checks="3"
5931-
# use -Og with available, otherwise fall back to -O0
5932-
OPT_FLAGS="-g -O0 -Og -fno-inline -hipa1"
5931+
OPT_FLAGS="-g -O0 -fno-inline -hipa1"
5932+
# Only for not gcc add -Og due to
5933+
# https://github.com/boutproject/BOUT-dev/issues/1879
5934+
$MPICXX --version | grep g++ -q || OPT_FLAGS="$OPT_FLAGS -Og"
59335935

59345936
else
59355937

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,10 @@ OPT_FLAGS=""
262262
AS_IF([test "$enable_debug" != ""], [
263263
AC_MSG_NOTICE([Enabling all debug options])
264264
enable_checks="3"
265-
# use -Og with available, otherwise fall back to -O0
266-
OPT_FLAGS="-g -O0 -Og -fno-inline -hipa1"
265+
OPT_FLAGS="-g -O0 -fno-inline -hipa1"
266+
# Only for not gcc add -Og due to
267+
# https://github.com/boutproject/BOUT-dev/issues/1879
268+
$MPICXX --version | grep g++ -q || OPT_FLAGS="$OPT_FLAGS -Og"
267269
], [
268270
AS_IF([test "x$enable_optimize" != "xno"], [
269271
AS_CASE(["$enable_optimize"],

0 commit comments

Comments
 (0)