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:
Joseph Cloutier
2022-05-26 18:55:53 -04:00
parent aa44a540f2
commit 9d56c6df4a

View File

@@ -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" />