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

Fix debug build's predefined-macros.txt #407

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

alexcrichton
Copy link
Collaborator

This commit fixes the ability to build wasi-libc with -g options and possibly without -O2 options as well. I've found this useful when debugging issues as historically that the build fails when -g is passed or optimizations are removed due to the checks against these expectation files. This commit adds more filters to the list of macros to ensure that optimization/debug related ones are all removed from the expectation lists.

This commit fixes the ability to build `wasi-libc` with `-g` options and
possibly without `-O2` options as well. I've found this useful when
debugging issues as historically that the build fails when `-g` is
passed or optimizations are removed due to the checks against these
expectation files. This commit adds more filters to the list of macros
to ensure that optimization/debug related ones are all removed from the
expectation lists.
@sunfishcode
Copy link
Member

Yes, this makes sense. The main use for the predefined macros files is to monitor changes to the very large set of macros that libc is expected to define, and so it's ok to trim some of the boring macros out.

@sunfishcode sunfishcode merged commit 38f4894 into WebAssembly:main Apr 5, 2023
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.

None yet

2 participants