Skip to content

Commit f960467

Browse files
authored
Disable assertions for libunwind (#534)
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.
1 parent 52afaf0 commit f960467

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ function(
12571257
-DLIBCXX_INCLUDE_BENCHMARKS=OFF
12581258
-DLIBCXX_TEST_PARAMS=executor=${test_executor}
12591259
-DLIBCXX_SHARED_OUTPUT_NAME="c++-shared"
1260+
-DLIBUNWIND_ENABLE_ASSERTIONS=OFF
12601261
-DLIBUNWIND_ENABLE_SHARED=OFF
12611262
-DLIBUNWIND_ENABLE_STATIC=ON
12621263
-DLIBUNWIND_IS_BAREMETAL=ON

0 commit comments

Comments
 (0)