]> git.lizzy.rs Git - rust.git/blob - tests/run-make/issue-47384/Makefile
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / run-make / issue-47384 / Makefile
1 include ../../run-make-fulldeps/tools.mk
2
3 # only-linux
4 # ignore-cross-compile
5
6 all: main.rs
7         $(RUSTC) --crate-type lib lib.rs
8         $(RUSTC) --crate-type cdylib -Clink-args="-Tlinker.ld" main.rs
9         # Ensure `#[used]` and `KEEP`-ed section is there
10         objdump -s -j".static" $(TMPDIR)/libmain.so
11         # Ensure `#[no_mangle]` symbol is there
12         nm $(TMPDIR)/libmain.so | $(CGREP) bar