From 1f92d8b5449f6fd17360421e2e4da3fb7bff5c5a Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Sun, 13 Oct 2019 16:46:12 +0000 Subject: [PATCH] [libc++][test] <=> now has a feature-test macro ...which `test/support/test_macros.h` can use to detect compiler support. llvm-svn: 374722 --- libcxx/test/support/test_macros.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 330d684..808f2b5 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -223,9 +223,8 @@ #define TEST_SAFE_STATIC #endif -// FIXME: Fix this feature check when either (A) a compiler provides a complete -// implementation, or (b) a feature check macro is specified -#if !defined(_MSC_VER) || defined(__clang__) || _MSC_VER < 1920 || _MSVC_LANG <= 201703L +#if !defined(__cpp_impl_three_way_comparison) \ + && (!defined(_MSC_VER) || defined(__clang__) || _MSC_VER < 1920 || _MSVC_LANG <= 201703L) #define TEST_HAS_NO_SPACESHIP_OPERATOR #endif -- 2.7.4