Skip to content

Commit 1f0e0da

Browse files
authored
[CMake] update Apple undefined symbol link flag from suppress (#116113)
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.
1 parent c03b6e8 commit 1f0e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ endif()
251251

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

257257
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

0 commit comments

Comments
 (0)