Use safe identical code folding on Android.

This commit is contained in:
levlam 2024-05-06 21:50:17 +03:00
parent a6bfa6327b
commit 19533bc90a

View File

@ -62,6 +62,8 @@ function(td_set_up_compiler)
set(TD_LINKER_FLAGS "-Wl,-z,ignore")
elseif (EMSCRIPTEN)
set(TD_LINKER_FLAGS "-Wl,--gc-sections")
elseif (ANDROID)
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL -Wl,--icf=safe")
else()
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL")
endif()