Skip to content

Commit

Permalink
Disable assertions for libunwind (#534)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pratlucas authored Oct 15, 2024
1 parent 52afaf0 commit f960467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,7 @@ function(
-DLIBCXX_INCLUDE_BENCHMARKS=OFF
-DLIBCXX_TEST_PARAMS=executor=${test_executor}
-DLIBCXX_SHARED_OUTPUT_NAME="c++-shared"
-DLIBUNWIND_ENABLE_ASSERTIONS=OFF
-DLIBUNWIND_ENABLE_SHARED=OFF
-DLIBUNWIND_ENABLE_STATIC=ON
-DLIBUNWIND_IS_BAREMETAL=ON
Expand Down

0 comments on commit f960467

Please sign in to comment.