-
Notifications
You must be signed in to change notification settings - Fork 51
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
Configuration changes to support C++ code #1204
Conversation
Change the name of GCCWARN to WARNING_CFLAGS to eliminate the gcc-specificity from the name. Granted it is unlikely, but WARNING_CFLAGS might potentially have different values depending on the detected compiler, without requiring changes to each Makefile.am. The name is also now in keeping with our other *_CFLAGS named variables. Also, we change from @GCCWARN@ to the more common variable usage $(WARNING_CFLAGS). This will help a little bit with coming C++ flags.
Update ax_code_coverage.m4 to the latest from https://www.gnu.org/software/autoconf-archive/ax_code_coverage.html. This new version supports C++ with a CODE_COVERAGE_CXXFLAGS variable. Rename CODE_COVERAGE_CFLAGS to CODE_COVERAGE_LIBS since the newer m4 file deprecates the former.
Introduce the WARNING_CXXFLAGS variable. These will be useful for future C++ code.
Introduce the AX_CXX_COMPILE_STDCXX macro from https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html. Employ the macro to set the C++ compiler to use C++11.
I might need travis relaunched on this. In the first error it just stalled after "t9990-python-tests.t 44 test.request.TestRequestMethods.test_null_payload". In the other one a run of configure failed here:
I don't think that those were related to this pull request. |
That's one of the commonly recurring travis error. I restarted. If you're not seeing the little restart button on each build you might need to sign up for a travis account (it uses github auth). |
Codecov Report
@@ Coverage Diff @@
## master #1204 +/- ##
==========================================
+ Coverage 77.82% 78.24% +0.41%
==========================================
Files 158 158
Lines 29298 29139 -159
==========================================
- Hits 22801 22799 -2
+ Misses 6497 6340 -157
|
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.
This looks OK to me, and passed a test build (autogen through make check) on c9.io.
@grondo should weigh in on the ax_code_coverage.m4 update.
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.
This is great, thanks!
A few commits to update the configuration system to allow building C++ code.