We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5bc832 + 638611f commit 8037b61Copy full SHA for 8037b61
.github/workflows/release.yml
@@ -76,4 +76,9 @@ jobs:
76
- name: Run y.sh cargo build
77
run: |
78
EMBED_LTO_BITCODE=1 CHANNEL="release" ./y.sh cargo build --release --manifest-path tests/hello-world/Cargo.toml
79
- # TODO: grep the asm output for "call my_func" and fail if it is found.
+ call_found=$(objdump -dj .text tests/hello-world/target/release/hello_world | grep -c "call .*mylib.*my_func" ) ||:
80
+ if [ $call_found -gt 0 ]; then
81
+ echo "ERROR: call my_func found in asm"
82
+ echo "Test is done with LTO enabled, hence inlining should occur across crates"
83
+ exit 1
84
+ fi
0 commit comments