diff --git a/ci/azure.yml b/ci/azure.yml index f908928935b00cc8d8ffce8c1ed23fdaf33fc110..ecdf88d5a56feddb03d58b76bbf12636c3b18246 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -34,9 +34,8 @@ jobs: displayName: Execute run-docker.sh strategy: matrix: - # FIXME: Disabled due to https://github.com/rust-lang/libc/issues/1765 - # aarch64-unknown-linux-android: - # TARGET: aarch64-linux-android + aarch64-unknown-linux-android: + TARGET: aarch64-linux-android aarch64-unknown-linux-gnu: TARGET: aarch64-unknown-linux-gnu aarch64-unknown-linux-musl: diff --git a/libc-test/build.rs b/libc-test/build.rs index f4a2f156b2f957a6998c7f86bdad30b8fde3fe55..a4645ae36b79ccdb681246a2d8a3c351e8ca1666 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1355,6 +1355,7 @@ fn test_android(target: &str) { t => panic!("unsupported target: {}", t), }; let x86 = target.contains("i686") || target.contains("x86_64"); + let aarch64 = target.contains("aarch64"); let mut cfg = ctest_cfg(); cfg.define("_GNU_SOURCE", None); @@ -1564,6 +1565,12 @@ fn test_android(target: &str) { // test the XSI version below. "strerror_r" => true, + // FIXME: Somehow we cannot find these fns on aarch64. + // https://github.com/rust-lang/libc/issues/1765 + "lockf" | "preadv64" | "pwritev64" | "openpty" | + "forkpty" | "login_tty" | "getifaddrs" | "freeifaddrs" | + "sethostname" | "getgrgid_r" | "getgrnam_r" if aarch64 => true, + _ => false, } });