Skip to content

Commit 5dda92f

Browse files
committed
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: bc633a4 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
1 parent abd1927 commit 5dda92f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libcxx/include/__config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,10 +1359,9 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
13591359
#define _LIBCPP_HAS_NO_COROUTINES
13601360
#endif
13611361

1362-
// FIXME: Correct this macro when either (A) a feature test macro for the
1363-
// spaceship operator is provided, or (B) a compiler provides a complete
1364-
// implementation.
1362+
#if !defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
13651363
#define _LIBCPP_HAS_NO_SPACESHIP_OPERATOR
1364+
#endif
13661365

13671366
// Decide whether to use availability macros.
13681367
#if !defined(_LIBCPP_BUILDING_LIBRARY) && \

0 commit comments

Comments
 (0)