-
Notifications
You must be signed in to change notification settings - Fork 160
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
Minimum supported version for C compiler #483
Comments
|
There was a blog post somewhere where Mirage folks were unhappy with the __has_include (which we should now be able to get rid of). According to https://en.cppreference.com/w/cpp/compiler_support this is in GCC 5. So maybe they, too, we reliant on GCC 4.8... |
I think @Frosne is running into exactly that right now in our CI. |
I'm happy to approve a PR that removes __has_include from lib/c/* and assumes everyone runs configure and thus has a valid config.h -- Mozilla has a hand-written config.h, correct? |
For now I solved it using these lines: #if defined(__has_include) If we don't want to remove config, it could be a way to go. |
Interesting. But then are you compiling AVX or AVX2 code? How are you defining |
With these lines we have gcc-4.4 compiler also passes CI :) |
By adding -DHACL_CAN_COMPILE_VEC128/256 to CFLAGS |
Ok I thought about it and I believe your solution is actually even better. This means clients who want to integrate HACL have two options:
I'm happy to approve a PR to that effect. There are only a handful of places that use __has_include |
To be closed once I finish & merge #561 |
Define GCC and clang minimum supported versions.
The text was updated successfully, but these errors were encountered: