Skip to content

Commit bdb07a8

Browse files
committed
Auto merge of #103647 - lqd:osx-x64-lto, r=Mark-Simulacrum
Enable ThinLTO for rustc on `x86_64-apple-darwin` Local measurements seemed to show an improvement on a couple benchmarks, so I'd like to test real CI builds, and see if the builder doesn't timeout with the expected slight increase in build times. Let's start with x64 rustc ThinLTO, and then figure out the file structure to configure LLVM ThinLTO. Maybe we'll then try `aarch64` builds since that also looked good locally.
2 parents 657eefe + 3a085f7 commit bdb07a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301
- name: dist-x86_64-apple
302302
env:
303303
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
304-
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
304+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
305305
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
306306
MACOSX_DEPLOYMENT_TARGET: 10.7
307307
SELECT_XCODE: /Applications/Xcode_13.4.1.app

src/ci/github-actions/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ jobs:
467467
- name: dist-x86_64-apple
468468
env:
469469
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin
470-
RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false
470+
RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin
471471
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
472472
MACOSX_DEPLOYMENT_TARGET: 10.7
473473
SELECT_XCODE: /Applications/Xcode_13.4.1.app

0 commit comments

Comments
 (0)