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 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
- $(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 \
8
8
-Z codegen-backend=$(TMPDIR ) /the_backend.dylib -Z unstable-options
9
9
grep -x " This has been \" compiled\" successfully." $(TMPDIR ) /some_crate
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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 {
63
63
let crate_name = ongoing_codegen. downcast :: < Symbol > ( )
64
64
. expect ( "in join_codegen_and_link: ongoing_codegen is not a Symbol" ) ;
65
65
for & crate_type in sess. opts . crate_types . iter ( ) {
66
- if crate_type != CrateType :: CrateTypeExecutable {
66
+ if crate_type != CrateType :: CrateTypeRlib {
67
67
sess. fatal ( & format ! ( "Crate type is {:?}" , crate_type) ) ;
68
68
}
69
69
let output_name =
You can’t perform that action at this time.
0 commit comments