Build: Opt out of -fno-semantic-interposition on Android

This commit is contained in:
Connor McLaughlin 2021-06-06 14:37:17 +10:00
parent dc895edaa2
commit 31f03268cc
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ if(ANDROID OR BUILD_LIBRETRO_CORE)
set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_CXX_VISIBILITY_PRESET hidden)
# -fno-semantic-interposition appears to be broken on Macs... of course. # -fno-semantic-interposition appears to be broken on Macs... of course.
if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND NOT APPLE) if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND NOT APPLE AND NOT ANDROID)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-semantic-interposition") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-semantic-interposition")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-semantic-interposition") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-semantic-interposition")
endif() endif()