File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
test/run-make/hotplug_codegen_backend Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ impl TransCrate for LlvmTransCrate {
252252
253253/// This is the entrypoint for a hot plugged rustc_trans
254254#[ no_mangle]
255- pub extern "C" fn __rustc_codegen_backend ( sess : & Session ) -> Box < TransCrate > {
255+ pub fn __rustc_codegen_backend ( sess : & Session ) -> Box < TransCrate > {
256256 LlvmTransCrate :: new ( sess)
257257}
258258
Original file line number Diff line number Diff line change 44 /bin/echo || exit 0 # This test requires /bin/echo to exist
55 $(RUSTC ) the_backend.rs --crate-name the_backend --crate-type dylib \
66 -o $(TMPDIR ) /the_backend.dylib
7- sleep 10
87 $(RUSTC ) some_crate.rs --crate-name some_crate --crate-type bin -o $(TMPDIR ) /some_crate \
98 -Z codegen-backend=$(TMPDIR ) /the_backend.dylib -Z unstable-options
109 grep -x " This has been \" compiled\" succesfully." $(TMPDIR ) /some_crate
You can’t perform that action at this time.
0 commit comments