@@ -52,15 +52,15 @@ impl Build {
52
52
}
53
53
54
54
fn cmd_make ( & self ) -> Command {
55
- match & self . host . as_ref ( ) . expect ( "HOST dir not set" ) [ ..] {
55
+ match & self . host . as_ref ( ) . expect ( "HOST is not set" ) [ ..] {
56
56
"x86_64-unknown-dragonfly" => Command :: new ( "gmake" ) ,
57
57
"x86_64-unknown-freebsd" => Command :: new ( "gmake" ) ,
58
58
_ => Command :: new ( "make" ) ,
59
59
}
60
60
}
61
61
62
62
pub fn build ( & mut self ) -> Artifacts {
63
- let target = & self . target . as_ref ( ) . expect ( "TARGET not set" ) [ ..] ;
63
+ let target = & self . target . as_ref ( ) . expect ( "TARGET is not set" ) [ ..] ;
64
64
65
65
if target. contains ( "msvc" ) {
66
66
return self . build_msvc ( ) ;
@@ -70,9 +70,9 @@ impl Build {
70
70
}
71
71
72
72
fn build_unix ( & mut self ) -> Artifacts {
73
- let target = & self . target . as_ref ( ) . expect ( "TARGET not set" ) [ ..] ;
74
- let host = & self . host . as_ref ( ) . expect ( "HOST not set" ) [ ..] ;
75
- let out_dir = self . out_dir . as_ref ( ) . expect ( "OUT_DIR not set" ) ;
73
+ let target = & self . target . as_ref ( ) . expect ( "TARGET is not set" ) [ ..] ;
74
+ let host = & self . host . as_ref ( ) . expect ( "HOST is not set" ) [ ..] ;
75
+ let out_dir = self . out_dir . as_ref ( ) . expect ( "OUT_DIR is not set" ) ;
76
76
let manifest_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
77
77
let source_dir = manifest_dir. join ( "luajit2" ) ;
78
78
let build_dir = out_dir. join ( "luajit-build" ) ;
@@ -198,8 +198,8 @@ impl Build {
198
198
}
199
199
200
200
fn build_msvc ( & mut self ) -> Artifacts {
201
- let target = & self . target . as_ref ( ) . expect ( "TARGET not set" ) [ ..] ;
202
- let out_dir = self . out_dir . as_ref ( ) . expect ( "OUT_DIR not set" ) ;
201
+ let target = & self . target . as_ref ( ) . expect ( "TARGET is not set" ) [ ..] ;
202
+ let out_dir = self . out_dir . as_ref ( ) . expect ( "OUT_DIR is not set" ) ;
203
203
let manifest_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
204
204
let source_dir = manifest_dir. join ( "luajit2" ) ;
205
205
let extras_dir = manifest_dir. join ( "extras" ) ;
0 commit comments