|
8 | 8 | RUSTUP_PATH = os.getenv('HOME') + '/.cargo/bin/rustup'
|
9 | 9 | RUSTC_PATH = os.getenv('HOME') + '/.cargo/bin/rustc'
|
10 | 10 | CARGO_PATH = os.getenv('HOME') + '/.cargo/bin/cargo'
|
| 11 | +NIGHTLY_TOOLCHAIN = 'nightly-2022-06-24' |
11 | 12 |
|
12 | 13 |
|
13 | 14 | def run(config: ScriptConfig):
|
@@ -59,7 +60,7 @@ def run(config: ScriptConfig):
|
59 | 60 | child_environment['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
|
60 | 61 |
|
61 | 62 | # subprocess.check_call([RUSTUP_PATH, 'override', 'set', 'nightly-2022-05-13'], cwd=config.LDK_C_BINDINGS_DIRECTORY)
|
62 |
| - subprocess.check_call([RUSTUP_PATH, 'override', 'set', 'nightly-2022-06-24'], cwd=config.LDK_C_BINDINGS_DIRECTORY) |
| 63 | + subprocess.check_call([RUSTUP_PATH, 'override', 'set', NIGHTLY_TOOLCHAIN], cwd=config.LDK_C_BINDINGS_DIRECTORY) |
63 | 64 |
|
64 | 65 | lipo_executables_input: [str] = []
|
65 | 66 |
|
@@ -105,7 +106,7 @@ def run(config: ScriptConfig):
|
105 | 106 | print('Rust target OS:', rust_target_os)
|
106 | 107 | print('Target:', rust_target_triplet)
|
107 | 108 |
|
108 |
| - subprocess.check_call([RUSTC_PATH, '+nightly', '-Z', 'unstable-options', '--print', 'target-spec-json', '--target', rust_target_triplet]) |
| 109 | + subprocess.check_call([RUSTC_PATH, f'+{NIGHTLY_TOOLCHAIN}', '-Z', 'unstable-options', '--print', 'target-spec-json', '--target', rust_target_triplet]) |
109 | 110 |
|
110 | 111 | # cargo build -Z build-std=panic_abort,std --features "std" --target "${RUST_ARCH}-apple-${RUST_TARGET_OS}" $RUST_CONFIGURATION_FLAG
|
111 | 112 | build_arguments = [CARGO_PATH, 'build', '-Z', 'build-std=panic_abort,std', '--features', 'std', '--target', rust_target_triplet]
|
|
0 commit comments