Skip to content

Commit 89f8219

Browse files
committed
fix(win): Address Windows crashes from issue 4641 (AcademySoftwareFoundation#4914)
Fixes AcademySoftwareFoundation#4641 Has something to do with mixing Windows compiler versions, there's a subtle ABI compatibility issue that this sidesteps. Signed-off-by: Larry Gritz <[email protected]>
1 parent 93d0725 commit 89f8219

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmake/compiler.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ if (MSVC)
202202
add_compile_definitions (_CRT_NONSTDC_NO_WARNINGS)
203203
add_compile_definitions (_SCL_SECURE_NO_WARNINGS)
204204
add_compile_definitions (JAS_WIN_MSVC_BUILD)
205+
# https://github.com/AcademySoftwareFoundation/OpenImageIO/issues/4641#issuecomment-2725013661
206+
add_compile_definitions (_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
205207
endif (MSVC)
206208

207209
if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"

0 commit comments

Comments
 (0)