mirror of https://github.com/PCSX2/pcsx2.git
CMake: Remove -segprot flag on MacOS
We no longer need to change page protection.
This commit is contained in:
parent
c8e0390aaf
commit
312a583092
|
@ -1220,11 +1220,6 @@ if (APPLE)
|
||||||
find_library(METAL_LIBRARY Metal)
|
find_library(METAL_LIBRARY Metal)
|
||||||
find_library(QUARTZCORE_LIBRARY QuartzCore)
|
find_library(QUARTZCORE_LIBRARY QuartzCore)
|
||||||
target_link_libraries(PCSX2_FLAGS INTERFACE ${METAL_LIBRARY} ${QUARTZCORE_LIBRARY})
|
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()
|
endif()
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY PCSX2_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set_property(GLOBAL PROPERTY PCSX2_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
Loading…
Reference in New Issue