unnamed namespace test on windows arm with clang and mingw

This commit is contained in:
Kyle Shores
2025-12-10 16:52:35 -06:00
parent 4f2f185196
commit 08abf889ae
2 changed files with 7 additions and 1 deletions

View File

@@ -33,5 +33,11 @@ TEST_SUBMODULE(unnamed_namespace_a, m) {
true;
#else
false;
#endif
m.attr("defined___aarch64__") =
#if defined(__aarch64__) || defined(_M_ARM64)
true;
#else
false;
#endif
}

View File

@@ -5,7 +5,7 @@ import pytest
from pybind11_tests import unnamed_namespace_a as m
from pybind11_tests import unnamed_namespace_b as mb
XFAIL_CONDITION = "not m.defined_WIN32_or__WIN32 and (m.defined___clang__ or m.defined__LIBCPP_VERSION)"
XFAIL_CONDITION = "(not m.defined_WIN32_or__WIN32 and (m.defined___clang__ or m.defined__LIBCPP_VERSION)) or (m.defined_WIN32_or__WIN32 and m.defined___clang__ and m.defined___aarch64__)"
XFAIL_REASON = "Known issues: https://github.com/pybind/pybind11/pull/4319"