@@ -52,15 +52,15 @@ impl Build {
5252 }
5353
5454 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" ) [ ..] {
5656 "x86_64-unknown-dragonfly" => Command :: new ( "gmake" ) ,
5757 "x86_64-unknown-freebsd" => Command :: new ( "gmake" ) ,
5858 _ => Command :: new ( "make" ) ,
5959 }
6060 }
6161
6262 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" ) [ ..] ;
6464
6565 if target. contains ( "msvc" ) {
6666 return self . build_msvc ( ) ;
@@ -70,9 +70,9 @@ impl Build {
7070 }
7171
7272 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" ) ;
7676 let manifest_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
7777 let source_dir = manifest_dir. join ( "luajit2" ) ;
7878 let build_dir = out_dir. join ( "luajit-build" ) ;
@@ -198,8 +198,8 @@ impl Build {
198198 }
199199
200200 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" ) ;
203203 let manifest_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
204204 let source_dir = manifest_dir. join ( "luajit2" ) ;
205205 let extras_dir = manifest_dir. join ( "extras" ) ;
0 commit comments