mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-21 12:51:07 +08:00
Threads are used by many SDL subsystems and may not be disabled.
Fixes https://github.com/libsdl-org/SDL/issues/5095
This commit is contained in:
@@ -2711,9 +2711,10 @@ endif()
|
||||
|
||||
# We always need to have threads and timers around
|
||||
if(NOT HAVE_SDL_THREADS)
|
||||
set(SDL_THREADS_DISABLED 1)
|
||||
file(GLOB THREADS_SOURCES ${SDL2_SOURCE_DIR}/src/thread/generic/*.c)
|
||||
list(APPEND SOURCE_FILES ${THREADS_SOURCES})
|
||||
message_error("Threads are needed by many SDL subsystems and may not be disabled")
|
||||
#set(SDL_THREADS_DISABLED 1)
|
||||
#file(GLOB THREADS_SOURCES ${SDL2_SOURCE_DIR}/src/thread/generic/*.c)
|
||||
#list(APPEND SOURCE_FILES ${THREADS_SOURCES})
|
||||
endif()
|
||||
if(NOT HAVE_SDL_TIMERS)
|
||||
set(SDL_TIMER_DUMMY 1)
|
||||
|
||||
Reference in New Issue
Block a user