Skip to content

Commit

Permalink
Avoid linker warnings on macOS about 'ld: warning: could not create c…
Browse files Browse the repository at this point in the history
…ompact unwind for ...'
  • Loading branch information
wdeconinck committed Mar 21, 2024
1 parent 5dc85c9 commit 8b37fca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/atlas_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ if( CMAKE_CXX_COMPILER_ID MATCHES IntelLLVM )
ecbuild_add_cxx_flags("-fno-finite-math-only")
endif()

if( APPLE AND CMAKE_Fortran_COMPILER_ID MATCHES GNU )
# Avoid warnings : ld: warning: could not create compact unwind for ...
add_link_options(-Wl,-keep_dwarf_unwind -Wl,-no_compact_unwind)
endif()

0 comments on commit 8b37fca

Please sign in to comment.