ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for Arm and AArch64 embedded targets.
Apache License 2.0
419 stars 98 forks source link

Disable assertions for libunwind #534

Closed pratlucas closed 1 month ago

pratlucas commented 1 month ago

When building the embedded toolchain, we currently disable assertions for libcxxabi, but assertions for libunwind are still enabled. This causes some of the logging functionality from libunwind to be included in the build, which in turn imposes a dependency on IO functionality that might not be available on baremetal environemnts.

This patch disables assertions for libunwind using the -DLIBUNWIND_ENABLE_ASSERTIONS=OFF option, removing the issue.