Skip to content

Commit d5c513a

Browse files
committed
Don't force version inclusion for macabi
1 parent 5ccf447 commit d5c513a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build_individual_libldk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def run(config: ScriptConfig):
2626

2727
rust_target_os = 'ios'
2828
if platform == 'macosx' and llvm_target_triple_suffix == '-macabi':
29-
# rust_target_os = 'ios-macabi'
30-
rust_target_os = 'ios14.0-macabi'
29+
rust_target_os = 'ios-macabi'
30+
# rust_target_os = 'ios14.0-macabi'
3131
elif platform == 'macosx':
3232
rust_target_os = 'darwin'
3333

@@ -55,9 +55,9 @@ def run(config: ScriptConfig):
5555
os.makedirs(lipo_binary_directory, exist_ok=True)
5656

5757
child_environment = dict(os.environ)
58-
child_environment['RUSTFLAGS'] = '--cfg=c_bindings'
58+
child_environment['RUSTFLAGS'] = '--cfg=c_bindings -C link-arg=-mios-version-min=14.0'
5959
child_environment['PATH'] = '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
60-
child_environment['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
60+
# child_environment['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
6161

6262
# subprocess.check_call([RUSTUP_PATH, 'override', 'set', 'nightly-2022-05-13'], cwd=config.LDK_C_BINDINGS_DIRECTORY)
6363
subprocess.check_call([RUSTUP_PATH, 'override', 'set', NIGHTLY_TOOLCHAIN], cwd=config.LDK_C_BINDINGS_DIRECTORY)

0 commit comments

Comments
 (0)