-
Notifications
You must be signed in to change notification settings - Fork 22
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
apple clang 16 (at least) needs -fexperimental-library #27
Comments
You need to use |
It is just a flag that has to be exported like an Yes, I am using c++20 otherwise I wouldn't reach this code veccore/include/VecCore/Backend/SIMD.h Lines 4 to 18 in b4b2bf3
Right? |
Here is a simple reproducer, as long as you have a mac14 clang16 machine, I guess?
|
The reproducer above doesn't work.
I guess just |
Please look at the difference between with and without -fexperimental-library
|
|
|
I will try on macOS, the above is on Linux, and with clang-18, so might explain the differences. |
It might be easier if you give me access to one of your build nodes, I only have an old machine with macOS 11.7 available to me at the moment, and that has clang 13 installed. |
Continuing from our mattermost discussion, and since apple clang hopeless for now Is it enough to add some logic so that VECCORE_ENABLE_STD_SIMD is not enabled in these cases? #if __cplusplus >= 202002L && defined(__has_include)
#if __has_include(<experimental/simd>)
#define VECCORE_ENABLE_STD_SIMD
#endif
#endif |
Yes, that is probably what I will do in the end. |
Fixed in 4d2ed77 |
Thanks, added to the release notes! |
As far as I can tell building against veccore on apple clang 16 on macos needs -fexperimental-library
Otherwise there is going to be a lot of
The text was updated successfully, but these errors were encountered: