Fix test
This commit is contained in:
@@ -4,6 +4,6 @@ all:
|
|||||||
/bin/echo || exit 0 # This test requires /bin/echo to exist
|
/bin/echo || exit 0 # This test requires /bin/echo to exist
|
||||||
$(RUSTC) the_backend.rs --crate-name the_backend --crate-type dylib \
|
$(RUSTC) the_backend.rs --crate-name the_backend --crate-type dylib \
|
||||||
-o $(TMPDIR)/the_backend.dylib
|
-o $(TMPDIR)/the_backend.dylib
|
||||||
$(RUSTC) some_crate.rs --crate-name some_crate --crate-type bin -o $(TMPDIR)/some_crate \
|
$(RUSTC) some_crate.rs --crate-name some_crate --crate-type lib -o $(TMPDIR)/some_crate \
|
||||||
-Z codegen-backend=$(TMPDIR)/the_backend.dylib -Z unstable-options
|
-Z codegen-backend=$(TMPDIR)/the_backend.dylib -Z unstable-options
|
||||||
grep -x "This has been \"compiled\" successfully." $(TMPDIR)/some_crate
|
grep -x "This has been \"compiled\" successfully." $(TMPDIR)/some_crate
|
||||||
|
|||||||
@@ -8,6 +8,5 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
fn main() {
|
#![feature(no_core)]
|
||||||
::std::process::exit(1);
|
#![no_core]
|
||||||
}
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ impl CodegenBackend for TheBackend {
|
|||||||
let crate_name = ongoing_codegen.downcast::<Symbol>()
|
let crate_name = ongoing_codegen.downcast::<Symbol>()
|
||||||
.expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");
|
.expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");
|
||||||
for &crate_type in sess.opts.crate_types.iter() {
|
for &crate_type in sess.opts.crate_types.iter() {
|
||||||
if crate_type != CrateType::CrateTypeExecutable {
|
if crate_type != CrateType::CrateTypeRlib {
|
||||||
sess.fatal(&format!("Crate type is {:?}", crate_type));
|
sess.fatal(&format!("Crate type is {:?}", crate_type));
|
||||||
}
|
}
|
||||||
let output_name =
|
let output_name =
|
||||||
|
|||||||
Reference in New Issue
Block a user