Skip to content

Commit aa80f8d

Browse files
committed
add engine support for linux-gnu
Signed-off-by: Xintao <[email protected]>
1 parent 269427f commit aa80f8d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,19 @@ impl Build {
103103
.arg("no-comp")
104104
.arg("no-zlib")
105105
.arg("no-zlib-dynamic")
106+
// MUSL doesn't implement some of the libc functions that the async
107+
// stuff depends on, and we don't bind to any of that in any case.
108+
.arg("no-async");
109+
110+
if target.contains("x86_64-unknown-linux-gnu") {
106111
// This actually fails to compile on musl (it needs linux/version.h
107112
// right now) but we don't actually need this most of the time. This
108113
// is intended for super-configurable backends and whatnot
109114
// apparently but the whole point of this script is to produce a
110115
// "portable" implementation of OpenSSL, so shouldn't be any harm in
111116
// turning this off.
112-
.arg("no-engine")
113-
// MUSL doesn't implement some of the libc functions that the async
114-
// stuff depends on, and we don't bind to any of that in any case.
115-
.arg("no-async");
117+
configure.arg("no-engine");
118+
}
116119

117120
// On Android it looks like not passing no-stdio may cause a build
118121
// failure (#13), but most other platforms need it for things like

0 commit comments

Comments
 (0)