add additional comments on SDL resolution

This commit is contained in:
adam-bloom 2021-09-25 14:31:35 -06:00
parent ab1b044925
commit 793eba68d1

View file

@ -37,6 +37,12 @@ if (APPLE)
set_source_files_properties(${OPENRCT2_UI_MM_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++ -fmodules")
if ("${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64")
# cross-compilation workaround for SDL2
# This has been addressed upstream in https://github.com/libsdl-org/SDL/commit/bf1d7a3a15a6c090188974bec8ca84eb1903d4f7
# Remove this workaround after:
# 1) a new SDL release is made containing that fix
# 2) The vcpkg port is updated to use that release
# 3) A new Dependencies release is made with that latest vcpkg version
# 4) That new release is used in this build
set(SDL_DISABLE_IMMINTRIN_H "-DSDL_DISABLE_IMMINTRIN_H")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SDL_DISABLE_IMMINTRIN_H}")
endif ()