summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2017-02-23 18:15:02 -0300
committerMarco A L Barbosa <malbarbo@gmail.com>2017-02-24 16:24:49 -0300
commit92ce51823cc442e5054805c0b535b9cf0e551b0e (patch)
tree9229e048beb10df81558555cc3bbf94325c6c20b /libc-test
parentc53251867fb4d635ff4d23a9e211448e4150ccca (diff)
downloadrust-libc-92ce51823cc442e5054805c0b535b9cf0e551b0e.tar.gz
Make libc-tests compile for aarch64-linux-android
- some tests are failing - remove readlink, timegm and sig* functions in favor of the unix/mod.rs definitions - remove time64_t (it is not defined for aarch64) - move some definitions to android/b32.rs and create appropriated definitions in android/b64.rs
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 2c5e2328e0..ed336c8254 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -6,6 +6,7 @@ use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
+ let aarch64 = target.contains("aarch64");
let x86_64 = target.contains("x86_64");
let windows = target.contains("windows");
let mingw = target.contains("windows-gnu");
@@ -105,8 +106,12 @@ fn main() {
}
if android {
+ if !aarch64 {
+ // time64_t is not define for aarch64
+ // If included it will generate the error 'Your time_t is already 64-bit'
+ cfg.header("time64.h");
+ }
cfg.header("arpa/inet.h");
- cfg.header("time64.h");
cfg.header("xlocale.h");
cfg.header("utmp.h");
} else if !windows {