Skip to content

Commit fa9ec1a

Browse files
committed
Add LTO test
1 parent fe608c7 commit fa9ec1a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
./y.sh prepare --only-libcore
5656
EMBED_LTO_BITCODE=1 ./y.sh build --sysroot --release --release-sysroot
5757
cargo test
58+
59+
- name: Run y.sh cargo build
60+
run: |
61+
CHANNEL="release" ./y.sh cargo build --release --manifest-path tests/hello-world/Cargo.toml
62+
# TODO: grep the asm output for "call my_func" and fail if it is found.
5863
./y.sh clean all
5964
6065
- name: Prepare dependencies

tests/hello-world/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ mylib = { path = "mylib" }
77

88
[profile.dev]
99
lto = "thin"
10+
11+
[profile.release]
12+
lto = "fat"

0 commit comments

Comments
 (0)