-
-
Notifications
You must be signed in to change notification settings - Fork 904
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 compilation on older gcc versions #3090
Allow compilation on older gcc versions #3090
Conversation
This looks like the right approach to me. Running the CI now. I'm not sure how to tell which version of GCC support which pragmas where though. |
I believe GCC versions prior to 4.6 are impacted - https://gcc.gnu.org/gcc-4.6/changes.html
I aligned with the approach taken by Redis for simplicity; Although I think that this could be tightened up a bit to check for minor version too
I'm happy to go with whatever check you think is best - I just know the currently suggested fix works for centos |
I'd love to be able to test this manually, but I couldn't easily find a docker image with gcc 4.6 or earlier. Do you know of one you can point me at? The centos:centos6 image will no longer I mean, I'm happy to merge this without testing it, too, if you're sure this solves your problem. Let me know? |
@flavorjones These replication steps should hopefully work
Beforefailure
Aftersuccess
|
@adfoster-r7 Thank you for your help, and for submitting this. Looks good to me, will merge and get into the next patch release. |
What problem is this PR intended to solve?
Compiling Nokogiri with older versions of GCC and centos causes the following error:
Have you included adequate test coverage?
No tests have been added; the solution implemented is similar to redis/redis#5394 - and has been verified as working locally in a fresh docker container
Does this change affect the behavior of either the C or the Java implementations?
Impacts the C behavior