Enable ARC when compiling SDL.
SDL_cocoavideo.m now enforces this, as of this commit:
ec8fa57750
That commit also removed the destructors from SDL_render_metal.m, which
implies it's required on iOS too.
And before anyone asks, SDL seems to have no plans to back down on this.
This commit is contained in:
@@ -501,6 +501,7 @@
|
||||
|
||||
<section if="mac">
|
||||
|
||||
<compilerflag value="-fobjc-arc" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/audio/coreaudio/SDL_coreaudio.m" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/file/cocoa/SDL_rwopsbundlesupport.m" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/filesystem/cocoa/SDL_sysfilesystem.m" />
|
||||
@@ -529,6 +530,7 @@
|
||||
|
||||
<section if="ios || tvos">
|
||||
|
||||
<compilerflag value="-fobjc-arc" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/audio/coreaudio/SDL_coreaudio.m" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/file/cocoa/SDL_rwopsbundlesupport.m" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/filesystem/cocoa/SDL_sysfilesystem.m" />
|
||||
|
||||
Reference in New Issue
Block a user