]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/sepcomp-cci-copies/Makefile
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / run-make-fulldeps / sepcomp-cci-copies / Makefile
1 include ../tools.mk
2
3 # Check that cross-crate inlined items are inlined in all compilation units
4 # that refer to them, and not in any other compilation units.
5 # Note that we have to pass `-C codegen-units=6` because up to two CGUs may be
6 # created for each source module (see `rustc_const_eval::monomorphize::partitioning`).
7
8 all:
9         $(RUSTC) cci_lib.rs
10         $(RUSTC) foo.rs --emit=llvm-ir -C codegen-units=6 \
11                 -Z inline-in-all-cgus
12         [ "$$(cat "$(TMPDIR)"/foo.*.ll | grep -c define\ .*cci_fn)" -eq "2" ]