-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Allow avxintrin.h to be used by C compiler #22850
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
Conversation
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
|
Can you remove these headers from the exception list in |
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. Also remove headers from test exception list as C++ only.
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.
An internal union defined to implement 256-bit AVX support added in PR #22430 is missing
unionkeywords at declarations so causes errors when used with the C compiler.Add the
unionkeyword to the declarations of them256_dataunion in avxintrin.h. Also adds__prefix to make type__m256_datato avoid further polluting global namespace.