Skip to content

Commit

Permalink
[CMake] update Apple undefined symbol link flag from suppress (#116113)
Browse files Browse the repository at this point in the history
the -undefined suppress option for Apple's linker is deprecated and was
producing multiple warnings. This updates it to dynamic_lookup, which
has much the same effect, but avoids these deprecation warnings.
  • Loading branch information
pow2clk authored Nov 14, 2024
1 parent c03b6e8 commit 1f0e0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ endif()

if(APPLE)
# Darwin-specific linker flags for loadable modules.
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,dynamic_lookup")
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
Expand Down

0 comments on commit 1f0e0da

Please sign in to comment.