From 2b3846306d4ef05fdf47d0e7d5751449dcc0e8d4 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 11 Apr 2018 01:06:28 +0000 Subject: [PATCH] [libcxx] Set ABI version 2 as default for Fuchsia This avoids the need for a custom generated config file which is desired because the custom config files differs per-target which means we cannot reuse headers across different targets. Differential Revision: https://reviews.llvm.org/D45304 llvm-svn: 329770 --- libcxx/include/__config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcxx/include/__config b/libcxx/include/__config index 7b94949..8e42abe 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -36,7 +36,11 @@ #define _LIBCPP_VERSION 7000 #ifndef _LIBCPP_ABI_VERSION -#define _LIBCPP_ABI_VERSION 1 +# ifdef __Fuchsia__ +# define _LIBCPP_ABI_VERSION 2 +# else +# define _LIBCPP_ABI_VERSION 1 +# endif #endif #if defined(__ELF__) -- 2.7.4