mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Disable posix_spawn on android
Apparently it's broken:
9cbb0715a9/packages/fish/0001-build.rs.patch
Part of #12055
This commit is contained in:
4
build.rs
4
build.rs
@@ -93,9 +93,11 @@ fn detect_cfgs(target: &mut Target) {
|
||||
}),
|
||||
("have_pipe2", &|target| target.has_symbol("pipe2")),
|
||||
("have_posix_spawn", &|target| {
|
||||
if target_os() == "openbsd" {
|
||||
if matches!(target_os().as_str(), "openbsd" | "android") {
|
||||
// OpenBSD's posix_spawn returns status 127 instead of erroring with ENOEXEC when faced with a
|
||||
// shebang-less script. Disable posix_spawn on OpenBSD.
|
||||
//
|
||||
// Android is broken for unclear reasons
|
||||
false
|
||||
} else {
|
||||
target.has_header("spawn.h")
|
||||
|
||||
Reference in New Issue
Block a user