Skip to content

Commit dd1107b

Browse files
Auto merge of #145667 - weihanglo:target-cpu, r=<try>
[DO NOT MERGE] target-cpu=x86_64v3 try-job: dist-x86_64-linux
2 parents e8a792d + df0de08 commit dd1107b

File tree

1 file changed

+4
-0
lines changed
  • src/ci/docker/host-x86_64/dist-x86_64-linux

1 file changed

+4
-0
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ ENV PGO_HOST=x86_64-unknown-linux-gnu
8080

8181
ENV HOSTS=x86_64-unknown-linux-gnu
8282

83+
ENV RUSTFLAGS="-C target_cpu=x86-64-v3"
84+
8385
ENV RUST_CONFIGURE_ARGS \
8486
--enable-full-tools \
8587
--enable-sanitizers \
@@ -90,6 +92,8 @@ ENV RUST_CONFIGURE_ARGS \
9092
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
9193
--set llvm.thin-lto=true \
9294
--set llvm.ninja=false \
95+
--set llvm.cxxflags=-march=x86-64-v3 \
96+
--set llvm.cflags=-march=x86-64-v3 \
9397
--set llvm.libzstd=true \
9498
--set rust.jemalloc \
9599
--set rust.use-lld=true \

0 commit comments

Comments
 (0)