Skip to content

Commit

Permalink
[cmake] Move away from flat namespaces.
Browse files Browse the repository at this point in the history
This patch removes the flat_namespace option that we pass to the linker on osx.
Instead we will make a dynamic lookup when a symbol is missing which is more
consistent with the default behavior for osx.

Fixes #300.
  • Loading branch information
vgvassilev committed Feb 12, 2024
1 parent 7550da9 commit b865ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
endif ()

if (APPLE)
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-undefined -Wl,dynamic_lookup")
endif ()

# FIXME: Use merge this with the content from the LLVMConfig and ClangConfig.
Expand Down

0 comments on commit b865ce5

Please sign in to comment.