diff options
| author | David Zarzycki <dave@znu.io> | 2020-01-24 13:26:53 -0500 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-01-24 19:35:17 +0100 |
| commit | 39c349e8fc7f4b334cf4b30724b28dfce44a024e (patch) | |
| tree | 23c338b3293b46341bb415693c5d275ec537044a /libcxx/include/__config | |
| parent | a3db4e05e36e836077e6e551feb6841c7e8023a0 (diff) | |
| download | bcm5719-llvm-39c349e8fc7f4b334cf4b30724b28dfce44a024e.tar.gz bcm5719-llvm-39c349e8fc7f4b334cf4b30724b28dfce44a024e.zip | |
Add test for spaceship operator to __config
Summary:
The libcxx test suite auto-detects spaceship operator, but __config does not. This means that the libcxx test suite has been broken for over a month when using top-of-tree clang. This also really ought to be fixed before 10.0.
See: bc633a42dd409dbeb456263e3388b8caa4680aa0
Reviewers: chandlerc, mclow.lists, EricWF, ldionne, CaseyCarter
Reviewed By: EricWF
Subscribers: broadwaylamb, hans, dexonsmith, tstellar, llvm-commits, libcxx-commits
Tags: #libc, #llvm
Differential Revision: https://reviews.llvm.org/D72980
(cherry picked from commit 5dda92fcb0ce9206f831aa7cddf24421dcf044d7)
Diffstat (limited to 'libcxx/include/__config')
| -rw-r--r-- | libcxx/include/__config | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index ac4549802ef..8f48f16c236 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -1350,10 +1350,9 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container( #define _LIBCPP_HAS_NO_COROUTINES #endif -// FIXME: Correct this macro when either (A) a feature test macro for the -// spaceship operator is provided, or (B) a compiler provides a complete -// implementation. +#if !defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L #define _LIBCPP_HAS_NO_SPACESHIP_OPERATOR +#endif // Decide whether to use availability macros. #if !defined(_LIBCPP_BUILDING_LIBRARY) && \ |

