Skip to content

Commit

Permalink
Merge pull request #108 from browsermt/graemenail-clang-patch
Browse files Browse the repository at this point in the history
Don't pass `--no-as-needed` to clang
  • Loading branch information
kpu authored Dec 7, 2023
2 parents 11c6ae7 + 0ace8f9 commit 02f2f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ else(MSVC)
list(APPEND ALL_WARNINGS -Wsuggest-override -Wno-int-in-bool-context)
endif()

if(CMAKE_COMPILER_IS_GNUCC)
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# these flags are not known to clang
set(CMAKE_GCC_FLAGS "-Wl,--no-as-needed")
set(CMAKE_RDYNAMIC_FLAG "-rdynamic")
endif(CMAKE_COMPILER_IS_GNUCC)
endif()

if(COMPILE_WASM)
if(USE_THREADS)
Expand Down

0 comments on commit 02f2f73

Please sign in to comment.