Skip to content

Commit 951122b

Browse files
committed
Fetch the dependencies we need before trying to build offline
This should fix a build failure when building for OSX in CI.
1 parent 43b9585 commit 951122b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

genbindings.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ if [ "$CLANGPP" != "" -a "$LLD" != "" ]; then
640640
LINK_ARG_FLAGS="-C link-arg=-fuse-ld=$LLD"
641641
export LDK_CLANG_PATH=$(which $CLANG)
642642
if [ "$MACOS_SDK" != "" ]; then
643+
# First fetch the dependencies we need
644+
RUSTC_BOOTSTRAP=1 RUSTFLAGS="$BASE_RUSTFLAGS -C target-cpu=apple-a14" cargo build $CARGO_BUILD_ARGS -v --target aarch64-apple-darwin -Zbuild-std=std,panic_abort || echo "Expected build failure failed successfully"
645+
643646
# At some point rustc fixed the issue which merits REALLY_PIN_CC. I'm not sure when,
644647
# however, so we just use 1.84 as the cutoff.
645648
[ "$RUSTC_MINOR_VERSION" -lt 84 ] && REALLY_PIN_CC

0 commit comments

Comments
 (0)