Skip to content

Commit 8b25cf6

Browse files
committed
fix test
1 parent 38ce67b commit 8b25cf6

File tree

7 files changed

+17
-4
lines changed

7 files changed

+17
-4
lines changed

src/test/run-make/rlib-format-packed-bundled-libs/Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
# with the LLVM bitcode generated by rustc.
77
NM = "$(LLVM_BIN_DIR)"/llvm-nm
88

9-
all: $(call NATIVE_STATICLIB,native_dep_1) $(call NATIVE_STATICLIB,native_dep_2) $(call NATIVE_STATICLIB,native_dep_3)
9+
all:
10+
# Build native dependencies
11+
$(RUSTC) native_dep_1.rs --crate-type=staticlib
12+
$(RUSTC) native_dep_2.rs --crate-type=staticlib
13+
$(RUSTC) native_dep_3.rs --crate-type=staticlib
1014
# Build new rlibs
1115
$(RUSTC) rust_dep_up.rs --crate-type=rlib -Zpacked_bundled_libs
1216
$(NM) $(TMPDIR)/librust_dep_up.rlib | $(CGREP) "U native_f2"

src/test/run-make/rlib-format-packed-bundled-libs/native_dep_1.c

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[no_mangle]
2+
pub fn native_f1() -> i32 {
3+
1
4+
}

src/test/run-make/rlib-format-packed-bundled-libs/native_dep_2.c

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[no_mangle]
2+
pub fn native_f2() -> i32 {
3+
2
4+
}

src/test/run-make/rlib-format-packed-bundled-libs/native_dep_3.c

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[no_mangle]
2+
pub fn native_f3() -> i32 {
3+
3
4+
}

0 commit comments

Comments
 (0)