Skip to content

Commit

Permalink
make windows pass ci
Browse files Browse the repository at this point in the history
Signed-off-by: Xintao <[email protected]>
  • Loading branch information
hunterlxt committed Jun 9, 2020
1 parent a280ada commit 9598413
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,20 @@ impl Build {
// Nothing related to zlib please
.arg("no-comp")
.arg("no-zlib")
.arg("no-zlib-dynamic")
// MUSL doesn't implement some of the libc functions that the async
// stuff depends on, and we don't bind to any of that in any case.
.arg("no-async");
.arg("no-zlib-dynamic");

if target.contains("musl") || target.contains("windows") {
if target.contains("musl") || target.contains("mingw") {
// This actually fails to compile on musl (it needs linux/version.h
// right now) but we don't actually need this most of the time.
configure.arg("no-engine");
}

if target.contains("musl") {
// MUSL doesn't implement some of the libc functions that the async
// stuff depends on, and we don't bind to any of that in any case.
configure.arg("no-async");
}

// On Android it looks like not passing no-stdio may cause a build
// failure (#13), but most other platforms need it for things like
// loading system certificates so only disable it on Android.
Expand Down

0 comments on commit 9598413

Please sign in to comment.