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

Define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR #599

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

baijumeswani
Copy link
Collaborator

microsoft/STL#3824 introduces constexpr mutex. An older version of msvcp140.dll will lead to A dynamic link library (DLL) initialization routine failed.

This error can be encountered if using conda Python since conda packages msvc dlls and these are older right now.

This PR disables the constexpr mutex so that ort package can work with older msvc dlls.

Thanks @snnn for the discovery.

@baijumeswani baijumeswani requested a review from snnn June 11, 2024 23:14
@baijumeswani baijumeswani merged commit 3821664 into main Jun 12, 2024
18 checks passed
@baijumeswani baijumeswani deleted the baijumeswani/non-constexpr-mutex branch June 12, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants