Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable ARC for theos build system

I'm currently using the theos build system to write applications and tweaks for jailbroken iPhones. Is there a way for me to enable automatic reference counting for specific projects with theos?

I've Googled and tried to decipher the theos makefiles, but I haven't been able to find anything.

like image 500
drewmm Avatar asked Dec 04 '22 11:12

drewmm


1 Answers

I'm not going to unaccept the above answer, because I suspect that this might just have to do with having different versions of theos, and the answer above definitely put me on the right track to finding what I needed. It turns out, at least for my version of theos, the environment variable to set is

ADDITIONAL_OBJCFLAGS = -fobjc-arc

(ADDITIONAL_CFLAGS is also an option, but I don't think there's an opportunity where it matters whether you enable ARC on straight-C code anyways).

like image 129
drewmm Avatar answered Dec 28 '22 15:12

drewmm