summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-03-30 11:34:22 +0000
committerTim Northover <tnorthover@apple.com>2014-03-30 11:34:22 +0000
commitc030063cc2b7a749a0e5b89e7a32d5d10b5f3fe9 (patch)
tree42e7805af29955d6a1d8cdfae6fea30f434d3931
parent8a71d236336705a49257d43ac8d986ba3d5f5060 (diff)
downloadlibcxx_35a-c030063cc2b7a749a0e5b89e7a32d5d10b5f3fe9.tar.gz
ARM64: use the alternate string layout on Apple platforms.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@205138 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/__config4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/__config b/include/__config
index 5998ed0f..c8bf9c88 100644
--- a/include/__config
+++ b/include/__config
@@ -203,6 +203,10 @@
#if defined(__clang__)
+#if __APPLE__ && !defined(__i386__) && !defined(__x86_64__) && !defined(__arm__)
+#define _LIBCPP_ALTERNATE_STRING_LAYOUT
+#endif
+
#if __has_feature(cxx_alignas)
# define _ALIGNAS_TYPE(x) alignas(x)
# define _ALIGNAS(x) alignas(x)