File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
59345936else
59355937
Original file line number Diff line number Diff line change @@ -262,8 +262,10 @@ OPT_FLAGS=""
262262AS_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"] ,
You can’t perform that action at this time.
0 commit comments