Skip to content

Commit

Permalink
Use DWARF unwinding with Clang to avoid overproduction of linking
Browse files Browse the repository at this point in the history
warnings with clang + gfortran
refs idaholab/moose#29009
  • Loading branch information
GiudGiud committed Jan 30, 2025
1 parent 91cdcdc commit fef6cae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acsm_compiler_flags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ AC_DEFUN([ACSM_SET_CXX_FLAGS],
],
[clang], [
dnl On Darwin with clang + gfortran, we get very many warnings for compact unwinding issues
dnl We deliberately keep relying on the less performant dwarf unwinding until the over-production of warnings is solved.
ACSM_LDFLAGS="-Wl,-keep_dwarf_unwind -Wl,-no_compact_unwind"
ACSM_CXXFLAGS_OPT="$ACSM_CXXFLAGS_OPT -O2 -felide-constructors -Qunused-arguments -Wunused-parameter -Wunused"
dnl devel flags are added on two lines since there are so many
ACSM_CXXFLAGS_DEVEL="$ACSM_CXXFLAGS_DEVEL -O2 -felide-constructors -g -pedantic -W -Wall -Wextra -Wno-long-long"
Expand Down

0 comments on commit fef6cae

Please sign in to comment.