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

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

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

forny
Copy link
Member

@forny forny commented Sep 18, 2023

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

Copy link
Member

@tgolsson tgolsson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mergify mergify bot merged commit bf2862c into main Sep 18, 2023
10 checks passed
@mergify mergify bot deleted the forny/no-strict-aliasing branch September 18, 2023 12:25
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.

2 participants