Skip to content

Commit

Permalink
Fixed an issue with SSE and Apple Silicon when compiling SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Oct 11, 2023
1 parent 9a108fe commit 81bdbe8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/deps/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ if (APPLE)
add_definitions(-DSDL_VIDEO_VULKAN=0)
add_definitions(-DSDL_VIDEO_OPENGL_ES2=0)
add_definitions(-DSDL_VIDEO_OPENGL_EGL=0)
add_definitions(-mmmx)
add_definitions(-msse)
add_definitions(-msse2)
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64")
add_definitions(-mmmx)
add_definitions(-msse)
add_definitions(-msse2)
endif ()
add_definitions(-DHX_MACOS)
include_directories(include/configs/mac)
include_directories(src/dynapi)
Expand Down

0 comments on commit 81bdbe8

Please sign in to comment.