[libcxx-commits] [PATCH] D122574: [libcxx] [test] Guard libc++-specific checks with _LIBCPP_VERSION
Jonathan Wakely via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 28 04:49:58 PDT 2022
jwakely added inline comments.
================
Comment at: libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp:41
assert(std::regex_constants::collate != 0);
-#ifdef _LIBCPP_ABI_REGEX_CONSTANTS_NONZERO // https://llvm.org/PR35967
+#if defined _LIBCPP_ABI_REGEX_CONSTANTS_NONZERO || !defined _LIBCPP_VERSION
+ // https://llvm.org/PR35967
----------------
An alternative to this would be for me to define `_LIBCPP_ABI_REGEX_CONSTANTS_NONZERO` in `test/support/test_macros.h` when libstdc++ is detected.
It seems slightly more correct to check this, rather than have non-libc++ implementations define a macro about the libc++ ABI variant, but I'll do it whichever way you like.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122574/new/
https://reviews.llvm.org/D122574
More information about the libcxx-commits
mailing list