diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-25 10:07:01 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-01 15:58:30 +0200 |
commit | 33d6d4bdf718c9d71e9e97339a5181ae53706880 (patch) | |
tree | 56bfa3a6f9acf83f885013ba20d44eb646da324b /platform/osx/detect.py | |
parent | ea12094f19b028c1dcf6d402b8cbb3296b2065a8 (diff) | |
download | redot-engine-33d6d4bdf718c9d71e9e97339a5181ae53706880.tar.gz |
[macOS] Enable Objective-C ARC
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r-- | platform/osx/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index c67791b340..cf601eaa7f 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -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") |