File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,14 @@ for IDX in ${!EXTRA_TARGETS[@]}; do
562562 EXTRA_ENV_TARGET=$( echo " ${EXTRA_TARGETS[$IDX]} " | sed ' s/-/_/g' )
563563 export CFLAGS_$EXTRA_ENV_TARGET =" $BASE_CFLAGS "
564564 export CC_$EXTRA_ENV_TARGET =${EXTRA_CCS[$IDX]}
565- RUSTFLAGS=" $BASE_RUSTFLAGS -C embed-bitcode=yes -C lto -C linker=${EXTRA_CCS[$IDX]} " CARGO_PROFILE_RELEASE_LTO=true cargo build $CARGO_BUILD_ARGS -v --release --target " ${EXTRA_TARGETS[$IDX]} "
565+ EXTRA_RUSTFLAGS=" "
566+ case " $EXTRA_ENV_TARGET " in
567+ " x86_64" * )
568+ export CFLAGS_$EXTRA_ENV_TARGET =" $BASE_CFLAGS -march=sandybridge -mtune=sandybridge"
569+ EXTRA_RUSTFLAGS=" -C target-cpu=sandybridge"
570+ ;;
571+ esac
572+ 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]} "
566573done
567574
568575if [ " $CLANGPP " != " " -a " $LLD " != " " ]; then
You can’t perform that action at this time.
0 commit comments