Skip to content

Commit 684663e

Browse files
committed
enable ThinLTO for rustc on x86_64-pc-windows-msvc dist builds
1 parent 0a6b941 commit 684663e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ jobs:
423423
os: windows-latest-xl
424424
- name: dist-x86_64-msvc
425425
env:
426-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler"
426+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler --set rust.lto=thin"
427427
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc src/ci/pgo.sh python x.py dist bootstrap --include-default-paths
428428
DIST_REQUIRE_ALL_TOOLS: 1
429429
os: windows-latest-xl

src/ci/github-actions/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ jobs:
659659
--target=x86_64-pc-windows-msvc
660660
--enable-full-tools
661661
--enable-profiler
662+
--set rust.lto=thin
662663
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc src/ci/pgo.sh python x.py dist bootstrap --include-default-paths
663664
DIST_REQUIRE_ALL_TOOLS: 1
664665
<<: *job-windows-xl

0 commit comments

Comments
 (0)