-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
GCC 48 #1257
GCC 48 #1257
Conversation
See nlohmann#212 for details
79c58ea
to
a25ca94
Compare
👍 |
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.
Apart from a small documentation request, everything is great.
I missed the compiler testing list in the readme, added a line there too. The other version strings may be a bit out of date. Also, I'm testing with the external GCC 4.8.5 package just like all the other GCC versions, but GCC 4.8.4 is the default compiler on Travis, so for the first time you could have a no extra packages GCC build of JSON on Travis. |
You’ll also want to update the text in the little graphic on the main page where there’s a 3.2.1 release. |
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.
Looks good to me.
Thanks so much for the effort! |
This allows us to build the TinyGltfImporter on GCC 4.8. It was disabled until now on Linux because the Travis builds were using GCC 4.7 and json.hpp required 4.9, but now that we're dropping 4.7 support, it makes sense to go an extra step and have this built under 4.8 as well. Taken from nlohmann/json#1257, applied the part that touches single_include/nlohmann/json.hpp except the compiler check on top, which doesn't apply. I could also update to json.hpp 3.3 / 3.4, but that version is 700 kB (vs 480 kB for this one) and I have no reason to use that. I also hope I'll never need to update this thing again.
This allows us to build the TinyGltfImporter on GCC 4.8. It was disabled until now on Linux because the Travis builds were using GCC 4.7 and json.hpp required 4.9, but now that we're dropping 4.7 support, it makes sense to go an extra step and have this built under 4.8 as well. Taken from nlohmann/json#1257, applied the part that touches single_include/nlohmann/json.hpp skipping the compiler check on top (which doesn't apply) and doing the change by hand. I could also update to json.hpp 3.3 / 3.4, but that version is 700 kB (vs 480 kB for this one) and I have no reason to use that. I also hope I'll never need to update this thing again.
This adds GCC 4.8 support, all tests pass on CentOS/RHEL 7. Previously discussed in #212.
All tests pass on Travis, even on GCC 4.8!