Skip to content

Commit e65db81

Browse files
committed
Fix test
1 parent 097de53 commit e65db81

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/test/run-make-fulldeps/hotplug_codegen_backend/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +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-
$(RUSTC) some_crate.rs --crate-name some_crate --crate-type bin -o $(TMPDIR)/some_crate \
7+
$(RUSTC) some_crate.rs --crate-name some_crate --crate-type lib -o $(TMPDIR)/some_crate \
88
-Z codegen-backend=$(TMPDIR)/the_backend.dylib -Z unstable-options
99
grep -x "This has been \"compiled\" successfully." $(TMPDIR)/some_crate

src/test/run-make-fulldeps/hotplug_codegen_backend/some_crate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn main() {
12-
::std::process::exit(1);
13-
}
11+
#![feature(no_core)]
12+
#![no_core]

src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl CodegenBackend for TheBackend {
6363
let crate_name = ongoing_codegen.downcast::<Symbol>()
6464
.expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");
6565
for &crate_type in sess.opts.crate_types.iter() {
66-
if crate_type != CrateType::CrateTypeExecutable {
66+
if crate_type != CrateType::CrateTypeRlib {
6767
sess.fatal(&format!("Crate type is {:?}", crate_type));
6868
}
6969
let output_name =

0 commit comments

Comments
 (0)