Skip to content

Commit

Permalink
Fix: Rolled back force load to MNN Libs
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueaklein committed Aug 28, 2024
1 parent aeebacb commit 8106898
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/processing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ target_link_libraries(processing_service PRIVATE

if(WIN32)
target_link_options(processing_service PUBLIC /WHOLEARCHIVE:${MNN_LIBS})
elseif(NOT APPLE)
elseif(APPLE)
target_link_options(processing_service PUBLIC -force_load ${MNN_LIBS})
else()
target_link_options(processing_service PUBLIC "-Wl,--whole-archive" ${MNN_LIBS} "-Wl,--no-whole-archive")
endif()
supergenius_install(processing_service)

0 comments on commit 8106898

Please sign in to comment.