mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 02:37:52 +00:00
fix ARM64 linkage with Visual Studio >= 17.14 when SDL_LIBC is disabled
Reference issue: https://github.com/libsdl-org/SDL/issues/13254 (cherry picked from commit2fb6abb9ad) (cherry picked from commitfb0e03f262)
This commit is contained in:
parent
5290bb036c
commit
233fce456a
1 changed files with 5 additions and 0 deletions
|
|
@ -634,6 +634,11 @@ if(MSVC)
|
|||
# Mark SDL3.dll as compatible with Control-flow Enforcement Technology (CET)
|
||||
sdl_shared_link_options("-CETCOMPAT")
|
||||
endif()
|
||||
|
||||
# for VS >= 17.14 targeting ARM64: inline the Interlocked funcs
|
||||
if(MSVC_VERSION GREATER 1943 AND SDL_CPU_ARM64 AND NOT SDL_LIBC)
|
||||
sdl_compile_options(PRIVATE "/forceInterlockedFunctions-")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue