Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable assertions for libunwind #534

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

pratlucas
Copy link
Collaborator

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.

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.
Copy link
Collaborator

@ostannard ostannard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pratlucas pratlucas merged commit f960467 into ARM-software:main Oct 15, 2024
1 check passed
@pratlucas pratlucas deleted the libunwind_asserts branch October 15, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants