Skip to content

Commit 887fd90

Browse files
committed
tmp: default x64 linux target to x64-v2 for perf test
1 parent 2efb0cd commit 887fd90

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
@@ -67,6 +67,8 @@ ENV PGO_HOST=x86_64-unknown-linux-gnu
6767

6868
ENV HOSTS=x86_64-unknown-linux-gnu
6969

70+
ENV RUSTFLAGS="-C target_cpu=x86-64-v2"
71+
7072
ENV RUST_CONFIGURE_ARGS \
7173
--enable-full-tools \
7274
--enable-sanitizers \
@@ -77,6 +79,8 @@ ENV RUST_CONFIGURE_ARGS \
7779
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
7880
--set llvm.thin-lto=true \
7981
--set llvm.ninja=false \
82+
--set llvm.cxxflags=-march=x86-64-v2 \
83+
--set llvm.cflags=-march=x86-64-v2 \
8084
--set rust.jemalloc \
8185
--set rust.use-lld=true \
8286
--set rust.lto=thin

0 commit comments

Comments
 (0)