Skip to content

Commit aed1a07

Browse files
committed
Fixup builder script, already fixed, but thanks @profiles
1 parent da3b5a9 commit aed1a07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/platform_builder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ def __init__(self, project_dir, library_build_type, platform, arch):
156156
self.cmake_args += ["-DCMAKE_SYSTEM_NAME=Darwin"]
157157
elif platform == "iphoneos":
158158
self.cmake_args += ["-DCMAKE_SYSTEM_NAME=iOS", "-DCMAKE_OSX_DEPLOYMENT_TARGET=9.3"]
159+
160+
sdk_name = "macosx" if platform == "macos" else "iphoneos"
161+
sdk_path = subprocess.run(f"xcrun --sdk {sdk_name} --show-sdk-path", shell=True, stdout=subprocess.PIPE, check=True)
162+
sdk_path = sdk_path.stdout.decode("utf-8").strip()
163+
self.cmake_args += [f"-DCMAKE_OSX_SYSROOT={sdk_path}"]
159164

160165
self.shared_output_name = "libdobby.dylib"
161166
self.static_output_name = "libdobby.a"

0 commit comments

Comments
 (0)