[libcxx-commits] [libcxx] [libcxx] Define `_LIBCPP_HAS_C8RTOMB_MBRTOC8` to true if compiling with clang (PR #152724)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 19 02:59:23 PDT 2025


================
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03
+
+// The following platforms do not provide mbrtoc8 and c8rtomb so the tests fail
+// XFAIL: target={{.+}}-aix{{.*}}
+// XFAIL: darwin
+// XFAIL: freebsd
+// XFAIL: windows
+// XFAIL: LIBCXX-PICOLIBC-FIXME
+
+// <uchar.h>
+
+#include <uchar.h>
+
+#include "test_macros.h"
+
+#if !defined(TEST_HAS_NO_C8RTOMB_MBRTOC8)
----------------
philnik777 wrote:

I don't think we need to keep this around. We're XFAILing the test for the platforms where it doesn't exist anyways.

https://github.com/llvm/llvm-project/pull/152724


More information about the libcxx-commits mailing list