Skip to content

Commit e398fee

Browse files
committed
JITs: When building both JITs, use Cargo in offline mode
--frozen is the same as --locked --offline, and it was first released in 2017. I saw a network related build failure on CI this addresses.
1 parent 7df9798 commit e398fee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4041,8 +4041,9 @@ AS_IF([test x"$JIT_CARGO_SUPPORT" != "xno" -o \( x"$YJIT_SUPPORT" != "xno" -a x"
40414041
# if YJIT and ZJIT release mode
40424042
AS_IF([test "${YJIT_SUPPORT}:${ZJIT_SUPPORT}" = "yes:yes"], [
40434043
JIT_CARGO_SUPPORT=release
4044+
CARGO_BUILD_ARGS="--frozen" # --locked and --offline
40444045
])
4045-
CARGO_BUILD_ARGS="--profile ${JIT_CARGO_SUPPORT} --features ${rb_cargo_features}"
4046+
CARGO_BUILD_ARGS="--profile ${JIT_CARGO_SUPPORT} --features ${rb_cargo_features} ${CARGO_BUILD_ARGS}"
40464047
AS_IF([test "${JIT_CARGO_SUPPORT}" = "dev"], [
40474048
RUST_LIB="target/debug/libruby.a"
40484049
], [

0 commit comments

Comments
 (0)