File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/test/run-make-fulldeps/hotplug_codegen_backend Expand file tree Collapse file tree 3 files changed +4
-5
lines changed 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- $(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
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments