Skip to content

Commit dd55b30

Browse files
authored
pcre2-sys: disable JIT for all ARM targets containing musleabi
Note: $ rustup target list | grep musleabi arm-unknown-linux-musleabi arm-unknown-linux-musleabihf armv5te-unknown-linux-musleabi armv7-unknown-linux-musleabi armv7-unknown-linux-musleabihf Ref: BurntSushi/ripgrep#2698
1 parent 8b6f7a6 commit dd55b30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pcre2-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ fn pcre2_sys_static() -> Option<bool> {
114114
// aarch64-linux-android does not build
115115
// armv7-linux-androideabi does not build
116116
// aarch64-unknown-linux-musl does not build
117+
// *-*-*-musleabi* does not build
117118
//
118119
// We may want to monitor developments on the `aarch64-apple-darwin` front as
119120
// they may end up propagating to all `aarch64`-based targets and the `x86_64`
@@ -131,6 +132,9 @@ fn enable_jit(target: &str, builder: &mut cc::Build) {
131132
if target == "aarch64-unknown-linux-musl" {
132133
return;
133134
}
135+
if target.contains("musleabi") {
136+
return;
137+
}
134138
if target.contains("apple-ios") || target.contains("apple-tvos") {
135139
return;
136140
}

0 commit comments

Comments
 (0)