aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-22 14:40:12 +0200
committerGitHub <noreply@github.com>2023-04-22 14:40:12 +0200
commitd89eb71040a1426a7aded5426b5ce5f50f8ce223 (patch)
treea9cba51725e4edef879348ea3062cf89955b55b7
parent669030ec08042e41d57f74adb4abb836c387930a (diff)
parente51e524175505877f67578a36a579472ce59eecf (diff)
downloadrneovim-d89eb71040a1426a7aded5426b5ce5f50f8ce223.tar.gz
rneovim-d89eb71040a1426a7aded5426b5ce5f50f8ce223.tar.bz2
rneovim-d89eb71040a1426a7aded5426b5ce5f50f8ce223.zip
Merge pull request #23263 from bfredl/notapple
fix(cmake): restore previously undocumented workround, now documented
-rwxr-xr-xsrc/nvim/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index efa6b3620a..bfdbe0c3b5 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -197,7 +197,8 @@ endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
target_link_libraries(nvim PRIVATE -Wl,--no-undefined -lsocket)
- else()
+ # workaround for clang-11 on macOS, supported on later versions:
+ elseif(NOT APPLE)
target_link_libraries(nvim PRIVATE -Wl,--no-undefined)
endif()