We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3895429 commit efdc506Copy full SHA for efdc506
.github/workflows/release.yml
@@ -76,10 +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
- asm=$(objdump -dj .text tests/hello-world/target/release/hello_world)
80
- if echo asm | grep -q "call .*mylib.*my_func" ; then
81
- echo "call my_func found in asm"
+ call_found=$(objdump -dj .text tests/hello-world/target/release/hello_world | grep -q "call .*mylib.*my_func" )
+ if call_found then
+ 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
- else
84
- echo "success"
85
fi
0 commit comments