File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/test/run-make/native-link-modifier-bundle Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 77# with the LLVM bitcode generated by rustc.
88NM = "$(LLVM_BIN_DIR ) "/llvm-nm
99SPLIT = "-Zsplit-bundled-libs"
10- BUNDLED_LIB = "libbundled .rlib.bundle.native-staticlib.a"
10+ BUNDLED_LIB = "libbundled_split .rlib.bundle.native-staticlib.a"
1111
1212
1313all : $(call NATIVE_STATICLIB,native-staticlib)
@@ -42,7 +42,7 @@ all: $(call NATIVE_STATICLIB,native-staticlib)
4242 $(NM) $(TMPDIR)/libbundled_split.rlib | $(CGREP) -ve "T _*native_func"
4343 $(NM) $(TMPDIR)/libbundled_split.rlib | $(CGREP) -e "U _*native_func"
4444
45- # Build a cdylib, `native-staticlib` will appear on the linker line because it was not bundled previously
45+ # Build a cdylib, 'BUNDLED_LIB' will appear on the linker line
4646 # The cdylib will contain the `native_func` symbol in the end
47- $(RUSTC) cdylib-non- bundled.rs --crate-type=cdylib --print link-args $(SPLIT) --crate-name=cdylib_non_bundled_split | $(CGREP) -e '-l[" ]*native-staticlib'
48- $(NM) $(call DYLIB,cdylib_non_bundled_split ) | $(CGREP) -e "[Tt] _*native_func"
47+ $(RUSTC) cdylib-bundled-split .rs --crate-type=cdylib --print link-args $(SPLIT) | $(CGREP) -e $(BUNDLED_LIB)
48+ $(NM) $(call DYLIB,cdylib_bundled_split ) | $(CGREP) -e "[Tt] _*native_func"
Original file line number Diff line number Diff line change 1+ extern crate bundled_split;
You can’t perform that action at this time.
0 commit comments