diff options
author | Tim Northover <tnorthover@apple.com> | 2014-10-08 17:28:37 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-10-08 17:28:37 +0000 |
commit | c1bdff019f0b948d949e535ebd91586f95ef7c42 (patch) | |
tree | a28ec708f2a3eebf8abc6444da4425af597c011c /SDKs | |
parent | 7f8371a90e00394baad495acebb65184de8f563d (diff) |
AArch64: add support for ARM64 iOS versions of compiler-rt.
Just a dummy directory and a few sane choices in the Darwin SDK.
rdar://problem/18575597
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs')
-rw-r--r-- | SDKs/darwin/usr/include/stdio.h | 4 | ||||
-rw-r--r-- | SDKs/darwin/usr/include/string.h | 4 | ||||
-rw-r--r-- | SDKs/darwin/usr/include/sys/fcntl.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/SDKs/darwin/usr/include/stdio.h b/SDKs/darwin/usr/include/stdio.h index 629b45015..1a8781f20 100644 --- a/SDKs/darwin/usr/include/stdio.h +++ b/SDKs/darwin/usr/include/stdio.h @@ -34,7 +34,7 @@ typedef __SIZE_TYPE__ size_t; # define __FDOPEN_NAME "_fdopen" # define __FOPEN_NAME "_fopen" # define __FWRITE_NAME "_fwrite" -# elif defined(__arm) +# elif defined(__arm) || defined(__arm64) # define __FDOPEN_NAME "_fdopen" # define __FOPEN_NAME "_fopen" # define __FWRITE_NAME "_fwrite" @@ -46,7 +46,7 @@ typedef __SIZE_TYPE__ size_t; # define __FDOPEN_NAME "_fdopen" # define __FOPEN_NAME "_fopen" # define __FWRITE_NAME "_fwrite" -# elif defined(__arm) +# elif defined(__arm) || defined(__arm64) # define __FDOPEN_NAME "_fdopen" # define __FOPEN_NAME "_fopen" # define __FWRITE_NAME "_fwrite" diff --git a/SDKs/darwin/usr/include/string.h b/SDKs/darwin/usr/include/string.h index 1a00574cf..048fdba8f 100644 --- a/SDKs/darwin/usr/include/string.h +++ b/SDKs/darwin/usr/include/string.h @@ -32,13 +32,13 @@ char *strncpy(char *, const char *, size_t); #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) # if defined(__i386) # define __STRERROR_NAME "_strerror$UNIX2003" -# elif defined(__x86_64__) || defined(__arm) +# elif defined(__x86_64__) || defined(__arm) || defined(__arm64) # define __STRERROR_NAME "_strerror" # else # error "unrecognized architecture for targeting OS X" # endif #elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) -# if defined(__i386) || defined (__x86_64) || defined(__arm) +# if defined(__i386) || defined (__x86_64) || defined(__arm) || defined(__arm64) # define __STRERROR_NAME "_strerror" # else # error "unrecognized architecture for targeting iOS" diff --git a/SDKs/darwin/usr/include/sys/fcntl.h b/SDKs/darwin/usr/include/sys/fcntl.h index e121949a4..96b24384a 100644 --- a/SDKs/darwin/usr/include/sys/fcntl.h +++ b/SDKs/darwin/usr/include/sys/fcntl.h @@ -23,7 +23,7 @@ # define __OPEN_NAME "_open$UNIX2003" # elif defined(__x86_64__) # define __OPEN_NAME "_open" -# elif defined(__arm) +# elif defined(__arm) || defined(__arm64) # define __OPEN_NAME "_open" # else # error "unrecognized architecture for targeting OS X" @@ -31,7 +31,7 @@ #elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) # if defined(__i386) || defined (__x86_64) # define __OPEN_NAME "_open" -# elif defined(__arm) +# elif defined(__arm) || defined(__arm64) # define __OPEN_NAME "_open" # else # error "unrecognized architecture for targeting iOS" |