Skip to content

Commit 45190d4

Browse files
refactor configure steps
1 parent aa05718 commit 45190d4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

hts-sys/build.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,27 +86,31 @@ fn main() {
8686
// https://github.com/rust-lang/cargo/issues/572#issuecomment-632456478
8787
!Command::new("make")
8888
.current_dir(out.join("htslib"))
89-
.arg("install")
9089
.arg("clean")
9190
.status().unwrap().success()
9291

9392
&&
9493

9594
!Command::new("autoreconf")
9695
.current_dir(out.join("htslib"))
97-
.arg("install")
9896
.env("CFLAGS", &cc_cflags)
9997
.status().unwrap().success()
10098

10199
&&
102-
100+
103101
!Command::new("./configure")
104102
.current_dir(out.join("htslib"))
105103
.arg("install")
106-
.arg(format!("--prefix={}/local", home_dir().unwrap().into_os_string().into_string().unwrap()))
107104
.env("CFLAGS", &cc_cflags)
108105
.arg(format!("--host={}", &host))
109106
.status().unwrap().success()
107+
&&
108+
109+
!Command::new("./configure")
110+
.current_dir(out.join("htslib"))
111+
.arg("install")
112+
.arg(format!("--prefix={}/local", home_dir().unwrap().into_os_string().into_string().unwrap()))
113+
.status().unwrap().success()
110114
{
111115
panic!("could not configure htslib nor any of its plugins")
112116
}

0 commit comments

Comments
 (0)