Skip to content

Commit

Permalink
add flag to disable constexpr mutex, see microsoft/STL#4875 (retry)
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Aug 7, 2024
1 parent cb03388 commit 30b9369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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": [],
}

Expand Down

0 comments on commit 30b9369

Please sign in to comment.