From 884e256e11d01455d37ebb1af92cfc8ee42ba53c Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Fri, 5 Dec 2025 08:37:03 -0600 Subject: [PATCH] Updating widows arm visibility This is really a patch made by @baburton. This checks if we are compiling on widows with arm and if so we export default visibility. --- include/pybind11/detail/common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 05d6755896..29d6f1c97b 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -139,7 +139,11 @@ #if !defined(PYBIND11_EXPORT) # if defined(WIN32) || defined(_WIN32) -# define PYBIND11_EXPORT __declspec(dllexport) +# if defined(__aarch64__) +# define PYBIND11_EXPORT __declspec(dllexport) __attribute__((visibility("default"))) +# else +# define PYBIND11_EXPORT __declspec(dllexport) +# endif # else # define PYBIND11_EXPORT __attribute__((visibility("default"))) # endif