You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[release/9.0-staging] Add flags when the clang's major version is > 20.0 (#121151)
## Customer Impact
- [x] Customer reported
- [ ] Found internally
These issues were reported in
#119706 as problems with
clang-21 on Fedora 43. The investigation uncovered that clang introduced
a potentially breaking change in clang-20 that we do not currently
consume. These build changes impact VMR related builds when linux
distrobutions performing source build adopt clang-21.
clang-20 breaking change log -
https://releases.llvm.org/20.1.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes.
This PR contains the minimal changes needed to fix issues from the
following PR #120775.
.NET 10: #121124
.NET 8: #121150
## Regression
- [ ] Yes
- [x] No
Build with the new clang-21 compiler will cause the runtime to crash.
## Testing
This has been validated using various legs and examples to demonstrate
the usage of undefined behavior these flags convert into "defined"
behavior in C/C++.
## Risk
Low. This has zero impact on our production build since we specifically
target clang-18. This is only valid for those partners that are using
clang-20+.
0 commit comments