Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable constexpr mutex constructors for MSVC #28225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

p-wysocki
Copy link
Contributor

Details:

Tickets:

Signed-off-by: p-wysocki <[email protected]>
@p-wysocki p-wysocki added this to the 2025.0 milestone Dec 29, 2024
@p-wysocki p-wysocki requested a review from a team as a code owner December 29, 2024 12:33
@github-actions github-actions bot added the category: inference OpenVINO Runtime library - Inference label Dec 29, 2024
Signed-off-by: p-wysocki <[email protected]>
Copy link
Contributor

@ilya-lavrenov ilya-lavrenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have it globally enabled for the project

# Workaround for an MSVC compiler issue in some versions of Visual Studio 2022.
# The issue involves a null dereference to a mutex. For details, refer to link https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710
if(MSVC AND MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1941)
ov_add_compiler_flags(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
endif()

is it not enough?

@ilya-lavrenov ilya-lavrenov self-assigned this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants