File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,13 @@ for IDX in ${!EXTRA_TARGETS[@]}; do
620620 ;;
621621 esac
622622 [ " ${EXTRA_LINK_LTO[$IDX]} " != " " ] && EXTRA_RUSTFLAGS=" -C linker-plugin-lto"
623- RUSTC_BOOTSTRAP=1 RUSTFLAGS=" $BASE_RUSTFLAGS -C embed-bitcode=yes -C lto -C linker=${EXTRA_CCS[$IDX]} $EXTRA_RUSTFLAGS " CARGO_PROFILE_RELEASE_LTO=true cargo build $CARGO_BUILD_ARGS -v --release --target " ${EXTRA_TARGETS[$IDX]} " -Zbuild-std=std,panic_abort
623+
624+ # At some point rustc fixed the issue which merits REALLY_PIN_CC. I'm not sure when,
625+ # however, so we just use 1.84 as the cutoff.
626+ [ " $RUSTC_MINOR_VERSION " -lt 84 ] && REALLY_PIN_CC
627+ [ " $RUSTC_MINOR_VERSION " -lt 84 ] && OFFLINE_OPT=" --offline"
628+
629+ RUSTC_BOOTSTRAP=1 RUSTFLAGS=" $BASE_RUSTFLAGS -C embed-bitcode=yes -C lto -C linker=${EXTRA_CCS[$IDX]} $EXTRA_RUSTFLAGS " CARGO_PROFILE_RELEASE_LTO=true cargo build $OFFLINE_OPT $CARGO_BUILD_ARGS -v --release --target " ${EXTRA_TARGETS[$IDX]} " -Zbuild-std=std,panic_abort
624630done
625631
626632if [ " $CLANGPP " != " " -a " $LLD " != " " ]; then
You can’t perform that action at this time.
0 commit comments