Skip to content

Commit 6259a36

Browse files
Ratzzoalexcrichton
authored andcommitted
Force the bundled http-parser if cross compiling (#337) (#338)
1 parent b037736 commit 6259a36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libgit2-sys/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ fn main() {
120120
cfg.define("CURL", "OFF");
121121
}
122122

123+
//Use bundled http-parser if cross compiling
124+
if host != target {
125+
cfg.define("USE_EXT_HTTP_PARSER", "OFF");
126+
}
127+
123128
let _ = fs::remove_dir_all(env::var("OUT_DIR").unwrap());
124129
t!(fs::create_dir_all(env::var("OUT_DIR").unwrap()));
125130

0 commit comments

Comments
 (0)