We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff3156 commit 8a09787Copy full SHA for 8a09787
src/test/run-make/sepcomp-cci-copies/Makefile
@@ -2,9 +2,11 @@
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_mir::monomorphize::partitioning`).
7
8
all:
9
$(RUSTC) cci_lib.rs
- $(RUSTC) foo.rs --emit=llvm-ir -C codegen-units=3 \
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" ]
0 commit comments