File tree 2 files changed +1
-2
lines changed
test/run-make/hotplug_codegen_backend
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 {
252
252
253
253
/// This is the entrypoint for a hot plugged rustc_trans
254
254
#[ no_mangle]
255
- pub extern "C" fn __rustc_codegen_backend ( sess : & Session ) -> Box < TransCrate > {
255
+ pub fn __rustc_codegen_backend ( sess : & Session ) -> Box < TransCrate > {
256
256
LlvmTransCrate :: new ( sess)
257
257
}
258
258
Original file line number Diff line number Diff line change 4
4
/bin/echo || exit 0 # This test requires /bin/echo to exist
5
5
$(RUSTC ) the_backend.rs --crate-name the_backend --crate-type dylib \
6
6
-o $(TMPDIR ) /the_backend.dylib
7
- sleep 10
8
7
$(RUSTC ) some_crate.rs --crate-name some_crate --crate-type bin -o $(TMPDIR ) /some_crate \
9
8
-Z codegen-backend=$(TMPDIR ) /the_backend.dylib -Z unstable-options
10
9
grep -x " This has been \" compiled\" succesfully." $(TMPDIR ) /some_crate
You can’t perform that action at this time.
0 commit comments