[macOS] Enable Objective-C ARC

This commit is contained in:
bruvzg
2022-01-25 10:07:01 +02:00
parent ea12094f19
commit 33d6d4bdf7
7 changed files with 46 additions and 118 deletions

View File

@ -86,6 +86,8 @@ def configure(env):
env.Append(CCFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
env.Append(LINKFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
env.Append(CCFLAGS=["-fobjc-arc"])
if not "osxcross" in env: # regular native build
if env["macports_clang"] != "no":
mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local")