Skip to content

Commit 9e2425c

Browse files
committed
Debug more details and set iOS deployment target to 14.0
1 parent 66743e7 commit 9e2425c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build_individual_libldk.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def run(config: ScriptConfig):
5454
child_environment = dict(os.environ)
5555
child_environment['RUSTFLAGS'] = '--cfg=c_bindings'
5656
child_environment['PATH'] = '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
57+
child_environment['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
5758

5859
# subprocess.check_call([RUSTUP_PATH, 'override', 'set', 'nightly-2022-05-13'], cwd=config.LDK_C_BINDINGS_DIRECTORY)
5960
subprocess.check_call([RUSTUP_PATH, 'override', 'set', 'nightly-2022-06-24'], cwd=config.LDK_C_BINDINGS_DIRECTORY)
@@ -96,6 +97,10 @@ def run(config: ScriptConfig):
9697
shutil.rmtree(cargo_target_directory, ignore_errors=True)
9798
subprocess.check_call([CARGO_PATH, 'clean'], cwd=config.LDK_C_BINDINGS_DIRECTORY)
9899

100+
print('Rust architecture:', rust_architecture)
101+
print('Rust target OS:', rust_target_os)
102+
print('Target:', f'{rust_architecture}-apple-{rust_target_os}')
103+
99104
# cargo build -Z build-std=panic_abort,std --features "std" --target "${RUST_ARCH}-apple-${RUST_TARGET_OS}" $RUST_CONFIGURATION_FLAG
100105
build_arguments = [CARGO_PATH, 'build', '-Z', 'build-std=panic_abort,std', '--features', 'std', '--target', f'{rust_architecture}-apple-{rust_target_os}']
101106
if config.RUST_CONFIGURATION_FLAG:

0 commit comments

Comments
 (0)