Skip to content

Commit 8bea6ad

Browse files
committed
Use DWARF unwinding with Clang to avoid overproduction of linking
warnings with clang + gfortran refs idaholab/moose#29009
1 parent e7e18c4 commit 8bea6ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

acsm_compiler_flags.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@ AC_DEFUN([ACSM_SET_CXX_FLAGS],
546546
],
547547
548548
[clang], [
549+
dnl On Darwin with clang + gfortran, we get very many warnings for compact unwinding issues
550+
dnl We deliberately keep relying on the less performant dwarf unwinding until the over-production of warnings is solved.
551+
ACSM_LDFLAGS="-Wl,-keep_dwarf_unwind -Wl,-no_compact_unwind"
552+
549553
ACSM_CXXFLAGS_OPT="$ACSM_CXXFLAGS_OPT -O2 -felide-constructors -Qunused-arguments -Wunused-parameter -Wunused"
550554
dnl devel flags are added on two lines since there are so many
551555
ACSM_CXXFLAGS_DEVEL="$ACSM_CXXFLAGS_DEVEL -O2 -felide-constructors -g -pedantic -W -Wall -Wextra -Wno-long-long"

0 commit comments

Comments
 (0)