Skip to content

Commit ae9e42f

Browse files
committed
Revert "Change the ABI version and ABI namespace to be _LIBCPP_VERSION"
There are some suspicious bot failures that I want to ensure aren't caused by this patch. I'll recommit tomorrow. llvm-svn: 364363
1 parent de94ac9 commit ae9e42f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

libcxx/include/__config

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
#define _LIBCPP_VERSION 9000
3636

37+
#ifndef _LIBCPP_ABI_VERSION
38+
# define _LIBCPP_ABI_VERSION 1
39+
#endif
40+
3741
#ifndef __STDC_HOSTED__
3842
# define _LIBCPP_FREESTANDING
3943
#endif
@@ -62,18 +66,7 @@
6266
# error Unknown object file format
6367
#endif
6468

65-
#if defined(_LIBCPP_ABI_UNSTABLE)
66-
# ifdef _LIBCPP_ABI_VERSION
67-
# error _LIBCPP_ABI_VERSION cannot be defined with _LIBCPP_ABI_UNSTABLE
68-
# endif
69-
# define _LIBCPP_ABI_VERSION _LIBCPP_VERSION
70-
#endif
71-
72-
#ifndef _LIBCPP_ABI_VERSION
73-
# define _LIBCPP_ABI_VERSION 1
74-
#endif
75-
76-
#if _LIBCPP_ABI_VERSION >= 2
69+
#if defined(_LIBCPP_ABI_UNSTABLE) || _LIBCPP_ABI_VERSION >= 2
7770
// Change short string representation so that string data starts at offset 0,
7871
// improving its alignment in some cases.
7972
# define _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT

0 commit comments

Comments
 (0)