Skip to content

Commit 91f170a

Browse files
authored
Merge pull request #30 from OpenVicProject/prefer/core-foundation
Prefer Foundation framework to Cocoa for Mac
2 parents ebbfc5d + 6b33eb4 commit 91f170a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/macos.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Based on https://github.com/godotengine/godot-cpp/blob/e83fd0904c13356ed1d4c3d09f8bb9132bdc6b77/tools/macos.py
1+
# Based on https://github.com/godotengine/godot-cpp/blob/98ea2f60bb3846d6ae410d8936137d1b099cd50b/tools/macos.py
22
import os
33
import sys
44

@@ -68,6 +68,14 @@ def generate(env):
6868
env.Append(CCFLAGS=["-isysroot", env["macos_sdk_path"]])
6969
env.Append(LINKFLAGS=["-isysroot", env["macos_sdk_path"]])
7070

71+
env.Append(
72+
LINKFLAGS=[
73+
"-framework",
74+
"Foundation",
75+
"-Wl,-undefined,dynamic_lookup",
76+
]
77+
)
78+
7179
if env["use_ubsan"] or env["use_asan"] or env["use_tsan"]:
7280
env.extra_suffix += ".san"
7381
env.Append(CCFLAGS=["-DSANITIZERS_ENABLED"])

0 commit comments

Comments
 (0)