diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-03-24 17:37:26 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2015-03-24 11:55:16 -0700 |
commit | d9bd9d79d5d73efe6c102f8e34104ed44c67e47d (patch) | |
tree | 1c10242f8a95e6247a052d20633a0918839571d8 | |
parent | b17db47c5818c11a4de1e5d570871a7c9f6fc686 (diff) | |
download | llvm-d9bd9d79d5d73efe6c102f8e34104ed44c67e47d.tar.gz |
[ndk] Add DISABLE_FUTIMENS to guard the use of futimens
So $NDK/build/tools/build-llvm.sh can add -DDISABLE_FUTIMENS
to remove dependencies of llvm binraries to futimens@GLIBC_2.6
doesn't exist in libc.so of some old linux systems.
-rw-r--r-- | lib/Support/Unix/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 973d010dcac..1e7adb7e10b 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -390,7 +390,7 @@ std::error_code status(int FD, file_status &Result) { } std::error_code setLastModificationAndAccessTime(int FD, TimeValue Time) { -#if defined(HAVE_FUTIMENS) +#if defined(HAVE_FUTIMENS) && !defined(DISABLE_FUTIMENS) timespec Times[2]; Times[0].tv_sec = Time.toEpochTime(); Times[0].tv_nsec = 0; |