about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-01 13:45:10 +0000
committerbors <bors@rust-lang.org>2024-03-01 13:45:10 +0000
commit6db96de66c2c0ea3f4f2f348ed1a83c2c507687d (patch)
treea0c69af4c3c9bd46f67ab99125683ebdbd84c2cf
parentb0696a5160711c068cb1f01b7437db7990d15750 (diff)
parent39e8512179f959341d4aa7277e0139c7c74f16d0 (diff)
Auto merge of #120264 - weihanglo:split-dward-kind-lto, r=michaelwoerister
test: enable `unpacked-lto` tests

This enables the correct `unpacked-lto` tests.

Not sure whether `.o` should be removed.
They are bitcode for linker-plugin-lto, though there might be some `.o` for `#[no_builtins]`?
-rw-r--r--tests/run-make/split-debuginfo/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run-make/split-debuginfo/Makefile b/tests/run-make/split-debuginfo/Makefile
index 9e05c8dc179..54eca5c58d7 100644
--- a/tests/run-make/split-debuginfo/Makefile
+++ b/tests/run-make/split-debuginfo/Makefile
@@ -234,28 +234,28 @@ unpacked-single:
 	ls $(TMPDIR)/*.dwp && exit 1 || exit 0
 	rm $(TMPDIR)/$(call BIN,foo)
 
-unpacked-lto: packed-lto-split packed-lto-single
+unpacked-lto: unpacked-lto-split unpacked-lto-single
 
 # - rmeta file added to rlib, no object files are generated and thus no debuginfo is generated
-# - `.o` never created
+# - `.o` present (bitcode)
 # - `.dwo` never created
 # - `.dwp` never created
 unpacked-lto-split:
 	$(RUSTC) baz.rs -g $(UNSTABLEOPTS) -Csplit-debuginfo=unpacked -Zsplit-dwarf-kind=split \
 		--crate-type=rlib -Clinker-plugin-lto
-	ls $(TMPDIR)/*.o && exit 1 || exit 0
+	rm $(TMPDIR)/*.o
 	ls $(TMPDIR)/*.dwo && exit 1 || exit 0
 	ls $(TMPDIR)/*.dwp && exit 1 || exit 0
 	rm $(TMPDIR)/libbaz.rlib
 
 # - rmeta file added to rlib, no object files are generated and thus no debuginfo is generated
-# - `.o` never created
+# - `.o` present (bitcode)
 # - `.dwo` never created
 # - `.dwp` never created
 unpacked-lto-single:
 	$(RUSTC) baz.rs -g $(UNSTABLEOPTS) -Csplit-debuginfo=unpacked -Zsplit-dwarf-kind=single \
 		--crate-type=rlib -Clinker-plugin-lto
-	ls $(TMPDIR)/*.o && exit 1 || exit 0
+	rm $(TMPDIR)/*.o
 	ls $(TMPDIR)/*.dwo && exit 1 || exit 0
 	ls $(TMPDIR)/*.dwp && exit 1 || exit 0
 	rm $(TMPDIR)/libbaz.rlib