Skip to content
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

Merged
merged 4 commits into from
Sep 26, 2017
Merged

Configuration changes to support C++ code #1204

merged 4 commits into from
Sep 26, 2017

Conversation

morrone
Copy link
Contributor

@morrone morrone commented Sep 26, 2017

A few commits to update the configuration system to allow building C++ code.

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.
@morrone morrone requested review from garlick and grondo September 26, 2017 02:40
@morrone
Copy link
Contributor Author

morrone commented Sep 26, 2017

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:

cat: write error: Resource temporarily unavailable

$ cat src/common/libflux/test_reactor.log
cat: src/common/libflux/test_reactor.log: No such file or directory


Done. Your build exited with 1.

I don't think that those were related to this pull request.

@garlick
Copy link
Member

garlick commented Sep 26, 2017

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).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 78.656% when pulling 9b111f7 on morrone:cxx_build_changes into df4c58c on flux-framework:master.

@codecov-io
Copy link

codecov-io commented Sep 26, 2017

Codecov Report

Merging #1204 into master will increase coverage by 0.41%.
The diff coverage is n/a.

@@            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
Impacted Files Coverage Δ
src/common/libflux/keepalive.c 86.66% <0%> (-6.67%) ⬇️
src/common/libflux/future.c 88.31% <0%> (-0.94%) ⬇️
src/broker/content-cache.c 73.43% <0%> (-0.49%) ⬇️
src/common/libkvs/treeobj.c 82.94% <0%> (-0.47%) ⬇️
src/common/libkvs/kvs.c 65.08% <0%> (-0.26%) ⬇️
src/broker/module.c 83.79% <0%> (-0.05%) ⬇️
src/common/libflux/message.c 81.13% <0%> (+0.07%) ⬆️
src/common/libjsc/jstatctl.c 78.8% <0%> (+0.11%) ⬆️
src/common/libsubprocess/subprocess.c 81.85% <0%> (+0.17%) ⬆️
src/modules/cron/cron.c 79.67% <0%> (+0.18%) ⬆️
... and 32 more

Copy link
Member

@garlick garlick left a 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.

Copy link
Contributor

@grondo grondo left a 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!

@grondo grondo merged commit 6486563 into flux-framework:master Sep 26, 2017
@morrone morrone deleted the cxx_build_changes branch September 26, 2017 17:37
@grondo grondo mentioned this pull request May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants