mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 02:35:01 -04:00
Somewhat ironically, there are strict aliasing violations in Clang,
which can result in the following assertion failure:
Assertion `*(NamedDecl **)&Data == ND && "PointerUnion mangles the NamedDecl pointer!"' failed.
Upstream's clang/CMakeLists.txt specifically (not LLVM as a whole)
passes -fno-strict-aliasing if the compiler is not Clang, and this fixes
the above issue.
This was seen when cross-building from Linux using a bootstrap
compiler, but likely also affects worlds built with a new enough
external GCC toolchain.
MFC after: 1 week
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D31533
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| headers | ||
| include | ||
| libclang | ||
| liblldb | ||
| libllvm | ||
| libllvmminimal | ||
| clang.build.mk | ||
| clang.pre.mk | ||
| freebsd_cc_version.h | ||
| lldb.pre.mk | ||
| llvm.build.mk | ||
| llvm.pre.mk | ||
| Makefile | ||
| Makefile.inc | ||