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

Change MSVC std::mutex workaround #923

Merged
merged 6 commits into from
Jun 30, 2024
Merged

Change MSVC std::mutex workaround #923

merged 6 commits into from
Jun 30, 2024

Conversation

MarkCallow
Copy link
Collaborator

@MarkCallow MarkCallow commented Jun 27, 2024

Instead of removing the older version of the vcruntime from the Temurin JVM installation in the GitHub Actions runner image, define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR when compiling libktx and ${ASTCENC_LIB_TARGET}. This makes the code compatible with older VC runtimes removing the burden from users to ensure their JVM installation uses the latest VC runtime.

See actions/runner-images#10055. For further background see actions/runner-images#10004 and https://developercommunity.visualstudio.com/t/Access-violation-in-_Thrd_yield-after-up/10664660#T-N10669129-N10678728.

Includes 2 other minor changes:

  1. Move the compiler info dump in CMakeLists.txt to before first use of the compiler info and recode it to use cmake_print_variables.
  2. Disable dump of system and platform info in tests/loadtests/CMakeLists.txt.

MarkCallow added a commit that referenced this pull request Jun 30, 2024
Unbelievable. While still wrangling with the workaround for the major
GHA Windows runner image meltdown (PR #920 and blocked-by-this PR #923)
Travis breaks their Ubuntu/arm64 runner image such that installs of
python-related tools on to the VM are failing.

This is their suggested workaround. I don't yet know if it will be
needed permanently.
Move compiler info dump and recode to use
cmake_print_variables.

Disable dump of system and platform info in loadtests
CMakeLists.txt.
It seems this code too calls the std::mutex constructor.

Remove unneeded " around generator expressions for this
define.
@MarkCallow MarkCallow merged commit 86e6e0b into main Jun 30, 2024
18 checks passed
@MarkCallow MarkCallow deleted the mutex_workaround branch June 30, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant