Closed corybarr closed 2 months ago
This hack has also been added to the branch of cesium-native that cesium-omniverse uses: https://github.com/CesiumGS/cesium-native/compare/main...cesium-omniverse-build?expand=1
We should pay attention to the VC redistributables that ship with kit, and remove this workaround once they've been updated to a newer version.
IMO you should do one of these:
Having mismatched CRT versions is likely to cause problems even beyond the very obvious one introduced in 17.10, so I don't think it's a good idea to work around it with _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
.
Visual Studio 17.10 created some issues with mutexes and memory access in Windows builds. Details are here:https://developercommunity.visualstudio.com/t/Visual-Studio-17100-Update-leads-to-Pr/10669759?sort=newest
Ultimately, we shouldn't need to use the _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR escape hatch.