CMake: Remove -segprot flag on MacOS

We no longer need to change page protection.
This commit is contained in:
Stenzek 2023-10-10 00:42:01 +10:00 committed by Connor McLaughlin
parent c8e0390aaf
commit 312a583092
1 changed files with 0 additions and 5 deletions

View File

@ -1220,11 +1220,6 @@ if (APPLE)
find_library(METAL_LIBRARY Metal)
find_library(QUARTZCORE_LIBRARY QuartzCore)
target_link_libraries(PCSX2_FLAGS INTERFACE ${METAL_LIBRARY} ${QUARTZCORE_LIBRARY})
# MacOS defaults to having a maximum protection of the __DATA segment of rw (non-executable)
# We have a bunch of page-sized arrays in bss that we use for jit
# Obviously not being able to make those arrays executable would be a problem
target_link_options(PCSX2_FLAGS INTERFACE -Wl,-segprot,__DATA,rwx,rw)
endif()
set_property(GLOBAL PROPERTY PCSX2_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})