EmbarkStudios / physx-rs

🎳 Rust binding for NVIDIA PhysX 🦀
http://embark.rs
Apache License 2.0
658 stars 43 forks source link

Use -fno-strict-aliasing when building physx #212

Closed forny closed 1 year ago

forny commented 1 year ago

A lot of undefined behavior with all the reinterpret_cast usage in physx.

The following was broken compiling without -fno-strict-aliasing with clang/llvm 16: https://github.com/NVIDIA-Omniverse/PhysX/blob/main/physx/source/geomutils/src/intersection/GuIntersectionRayBox.cpp#L199