From b9bacc78b8f3d1cd832335ae19ada5174add1440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Mon, 6 Nov 2023 04:38:45 +0300 Subject: [PATCH] Revert changes in cmake --- CMakeLists.txt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56c3cb6f4..7b4eb1840 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -682,22 +682,6 @@ if (BUILD_SHARED_LIBS) if (LLAMA_METAL) set_target_properties(llama PROPERTIES RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/ggml-metal.metal") endif() - - # By default, symbols provided by the sublibs that are not used by mainlib (which is all of them in this case) - # are not used. This changes that. - if (WIN32) - set_target_properties(llama PROPERTIES - LINK_FLAGS "/WHOLEARCHIVE /FORCE:MULTIPLE /NODEFAULTLIB:library" - ) - elseif (APPLE) - set_target_properties(llama PROPERTIES - LINK_FLAGS "-Wl,-all_load" - ) - else () - set_target_properties(llama PROPERTIES - LINK_FLAGS "-Wl,--whole-archive" - ) - endif () endif()