Skip to content

Commit 82ac9f7

Browse files
committed
Hopefully fix the 32bit SEGV
1 parent cc4deb2 commit 82ac9f7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_trans/lib.rs

+1-1
Original file line numberDiff line numberDiff 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

src/test/run-make/hotplug_codegen_backend/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ all:
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

0 commit comments

Comments
 (0)