From 30b93692f7cdff664829ab84083e6fbbfd6af7bc Mon Sep 17 00:00:00 2001 From: Robin Scheibler Date: Thu, 8 Aug 2024 00:37:48 +0900 Subject: [PATCH] add flag to disable constexpr mutex, see https://github.com/microsoft/STL/issues/4875 (retry) --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b0a9ce13..1275d1d1 100644 --- a/setup.py +++ b/setup.py @@ -75,8 +75,6 @@ def __str__(self): "-Wall", "-O3", "-DEIGEN_NO_DEBUG", - # see https://github.com/microsoft/STL/issues/4875 - "-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR", ], ), Extension( @@ -132,8 +130,9 @@ def cpp_flag(compiler): class BuildExt(build_ext): """A custom build extension for adding compiler-specific options.""" + # see https://github.com/microsoft/STL/issues/4875 c_opts = { - "msvc": ["/EHsc"], + "msvc": ["/EHsc", "/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"], "unix": [], }