From e1e785b50fe061191ee541b5ea7ec44469873860 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Thu, 23 Jun 2022 15:40:21 +0200 Subject: [PATCH] adapt native-link-modifier-bundle test no not emit LLVM bitcode --- src/test/run-make/native-link-modifier-bundle/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/run-make/native-link-modifier-bundle/Makefile b/src/test/run-make/native-link-modifier-bundle/Makefile index 723bb4689fe40..e2c949df594c9 100644 --- a/src/test/run-make/native-link-modifier-bundle/Makefile +++ b/src/test/run-make/native-link-modifier-bundle/Makefile @@ -5,14 +5,14 @@ all: $(call NATIVE_STATICLIB,native-staticlib) # Build a staticlib and a rlib, the `native_func` symbol will be bundled into them - $(RUSTC) bundled.rs --crate-type=staticlib --crate-type=rlib + $(RUSTC) bundled.rs --crate-type=staticlib --crate-type=rlib -Cembed-bitcode=no nm $(TMPDIR)/libbundled.a | $(CGREP) -e "T _*native_func" nm $(TMPDIR)/libbundled.a | $(CGREP) -e "U _*native_func" nm $(TMPDIR)/libbundled.rlib | $(CGREP) -e "T _*native_func" nm $(TMPDIR)/libbundled.rlib | $(CGREP) -e "U _*native_func" # Build a staticlib and a rlib, the `native_func` symbol will not be bundled into it - $(RUSTC) non-bundled.rs --crate-type=staticlib --crate-type=rlib + $(RUSTC) non-bundled.rs --crate-type=staticlib --crate-type=rlib -Cembed-bitcode=no nm $(TMPDIR)/libnon_bundled.a | $(CGREP) -ve "T _*native_func" nm $(TMPDIR)/libnon_bundled.a | $(CGREP) -e "U _*native_func" nm $(TMPDIR)/libnon_bundled.rlib | $(CGREP) -ve "T _*native_func"