Skip to content

Commit 1487bcf

Browse files
committed
[Experiment] Test rustc perf if compiled for x86-64-v3
1 parent 58899c4 commit 1487bcf

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

+4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ ENV PGO_HOST=x86_64-unknown-linux-gnu
100100

101101
ENV HOSTS=x86_64-unknown-linux-gnu
102102

103+
ENV RUSTFLAGS="-C target_cpu=x86-64-v3"
104+
103105
ENV RUST_CONFIGURE_ARGS \
104106
--enable-full-tools \
105107
--enable-sanitizers \
@@ -110,6 +112,8 @@ ENV RUST_CONFIGURE_ARGS \
110112
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
111113
--set llvm.thin-lto=true \
112114
--set llvm.ninja=false \
115+
--set llvm.cxxflags=-march=x86-64-v3 \
116+
--set llvm.cflags=-march=x86-64-v3 \
113117
--set rust.jemalloc
114118
ENV SCRIPT ../src/ci/pgo.sh python3 ../x.py dist \
115119
--host $HOSTS --target $HOSTS \

0 commit comments

Comments
 (0)