-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Allow avxintrin.h to be used by C compiler #22850
base: main
Are you sure you want to change the base?
Conversation
An internal union defined to implement 256-bit AVX support added in PR emscripten-core#22430 is missing `union` keywords at declarations so causes errors when used with the C compiler. Add the `union` keyword to the declarations of the `m256_data` union in avxintrin.h. Also adds `__` prefix to make type `__m256_data` to avoid further polluting global namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.. but I wonder why this wasn't covered by our test_standalone_system_headers
test in the test_other.py
It looks like the |
Include `compat` headers. See emscripten-core#22850
I just uploaded #22854. Once that land you should be able to remove the exceptions for these headers from |
Include `compat` headers. See #22850
An internal union defined to implement 256-bit AVX support added in PR #22430 is missing
union
keywords at declarations so causes errors when used with the C compiler.Add the
union
keyword to the declarations of them256_data
union in avxintrin.h. Also adds__
prefix to make type__m256_data
to avoid further polluting global namespace.