Skip to content

Commit e90b8b5

Browse files
authored
build stdlib with LTO flags (#3)
1 parent 3936cb3 commit e90b8b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
RUSTC_BOOTSTRAP: 1
6464
# This is required by compiler-builtins
6565
RUSTC_SRC: ${{ steps.rust-src.outputs.path }}
66-
RUSTFLAGS: "-C panic=abort -C opt-level=s -C llvm-args=--inline-threshold=225 -C codegen-units=1 -Zlocation-detail=none -Zforce-unstable-if-unmarked"
66+
RUSTFLAGS: "-C panic=abort -C opt-level=s -Clto=fat -Cembed-bitcode -C llvm-args=--inline-threshold=225 -C codegen-units=1 -Zlocation-detail=none -Zforce-unstable-if-unmarked"
6767
IPHONEOS_DEPLOYMENT_TARGET: "14.0"
6868
run: |
6969
cd ${RUSTC_SRC}/library/std
@@ -78,7 +78,7 @@ jobs:
7878
env:
7979
RUSTC_BOOTSTRAP: 1
8080
RUSTC_SRC: ${{ steps.rust-src.outputs.path }}
81-
RUSTFLAGS: "-C panic=abort -C opt-level=s -C llvm-args=--inline-threshold=225 -C codegen-units=1 -Zlocation-detail=none -Zforce-unstable-if-unmarked"
81+
RUSTFLAGS: "-C panic=abort -C opt-level=s -Clto=fat -Cembed-bitcode -C llvm-args=--inline-threshold=225 -C codegen-units=1 -Zlocation-detail=none -Zforce-unstable-if-unmarked"
8282
run: |
8383
cd ${RUSTC_SRC}/library/std
8484
# Set the path pointing to the NDK where all the cross-compiling clang binaries exist

0 commit comments

Comments
 (0)