@@ -66,7 +66,9 @@ fn main() {
66
66
}
67
67
68
68
let tool = cfg. get_compiler ( ) ;
69
+ #[ allow( unused_variables) ]
69
70
let ( cc_path, cflags_env) = ( tool. path ( ) , tool. cflags_env ( ) ) ;
71
+ #[ allow( unused_variables) ]
70
72
let cc_cflags = cflags_env. to_string_lossy ( ) . replace ( "-O0" , "" ) ;
71
73
if Command :: new ( "autoheader" )
72
74
. current_dir ( out. join ( "htslib" ) )
@@ -77,7 +79,7 @@ fn main() {
77
79
{
78
80
panic ! ( "failed to build htslib" ) ;
79
81
}
80
- println ! ( "autoheader" ) ;
82
+ // println!("autoheader");
81
83
if Command :: new ( "autoconf" )
82
84
. current_dir ( out. join ( "htslib" ) )
83
85
. status ( )
@@ -87,7 +89,7 @@ fn main() {
87
89
{
88
90
panic ! ( "failed to build htslib" ) ;
89
91
}
90
- println ! ( "autoconf" ) ;
92
+ // println!("autoconf");
91
93
if Command :: new ( "sh" )
92
94
. current_dir ( out. join ( "htslib" ) )
93
95
. arg ( "./configure" )
@@ -99,22 +101,20 @@ fn main() {
99
101
{
100
102
panic ! ( "failed to build htslib" ) ;
101
103
}
102
- println ! ( "sh ./configure" ) ;
103
- println ! ( "{}" , format!( "--prefix={}/local/bin " , "/Users/tom/" ) ) ;
104
+ // println!("sh ./configure");
105
+ // println!("{}", format!("--prefix={}/local", home_dir().unwrap().into_os_string().into_string().unwrap() ));
104
106
if Command :: new ( "sh" )
105
107
. current_dir ( out. join ( "htslib" ) )
106
108
. arg ( "./configure" )
107
- . arg ( format ! ( "--prefix={}/local/bin" , "/Users/tom" ) )
108
- // .arg("--prefix={}/local/bin")
109
- // .arg(home_dir())
109
+ . arg ( format ! ( "--prefix={}/local" , home_dir( ) . unwrap( ) . into_os_string( ) . into_string( ) . unwrap( ) ) )
110
110
. status ( )
111
111
. unwrap ( )
112
112
. success ( )
113
113
!= true
114
114
{
115
115
panic ! ( "failed to build htslib" ) ;
116
116
}
117
- println ! ( "make" ) ;
117
+ // println!("make");
118
118
if Command :: new ( "make" )
119
119
. current_dir ( out. join ( "htslib" ) )
120
120
. arg ( "install" )
@@ -125,7 +125,7 @@ fn main() {
125
125
{
126
126
panic ! ( "failed to build htslib" ) ;
127
127
}
128
- println ! ( "make install" ) ;
128
+ // println!("make install");
129
129
cfg. file ( "wrapper.c" ) . compile ( "wrapper" ) ;
130
130
131
131
bindgen:: Builder :: default ( )
0 commit comments