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

Add generic override for the c standard #239

Merged
merged 3 commits into from
Nov 10, 2017

Conversation

prwolfe
Copy link
Contributor

@prwolfe prwolfe commented Nov 8, 2017

This modifies the TRIBITS_DEFINE_STANDARD_COMPILE_FLAGS_VARS
macro to respect a ${PROJECT_NAME}_C_Standard value when passed.

This modifies the TRIBITS_DEFINE_STANDARD_COMPILE_FLAGS_VARS
macro to respect a ${PROJECT_NAME}_C_Standard value when passed.
@prwolfe
Copy link
Contributor Author

prwolfe commented Nov 8, 2017

@bartlettroscoe,

I think I might should have sent this to another repo than TriBITSPub - let me know if I forked the wrong one.

Thanks!

Paul

prwolfe added a commit to prwolfe/Trilinos that referenced this pull request Nov 8, 2017
This file should be merged to Trilinos only after
pull request trilinos#239 in TriBITSPub has been propigated
to Trilinos. (TriBITSPub/TriBITS#239)
It merely sets the override for the sierra builds to
be the c11 posix standard.
@bartlettroscoe
Copy link
Member

@prwolfe, this is the right repo. I will look at a way to write a test for this and add documentation then I will push to your branch.

There is no C code in TribitsExampleProject so I could not set up a direct
test for the correct setting of the cache var ${PROJECT_NAME}_C_Standard.  But
since this is just a small amount of code I tested it with a quick build of
Zoltan under Trilinos (which has *.c files).

I added documentation to the Tribits Developers Guide since it is mostly
project developers who will want to change the C standard.  I did not directly
document this new option in the TriBITS Project Build Reference since I did
not think it needed to be documented there.  But since this is a cache var,
users can find this by examining the cache vars and the documentation for
those.  Hopefully that is enough.

ToDo: We need to add an example/test package that has C code so that we can
test C handling of real source code by TriBITS.
@bartlettroscoe bartlettroscoe merged commit 6e3d7d2 into TriBITSPub:master Nov 10, 2017
bartlettroscoe added a commit that referenced this pull request Nov 10, 2017
This is needed for trilinos/Trilinos#1974.

Build/Test Cases Summary
Enabled Packages:
Enabled all Packages
0) MPI_DEBUG => passed: passed=263,notpassed=0 (0.74 min)
1) SERIAL_RELEASE => passed: passed=263,notpassed=0 (0.62 min)
2) MPI_DEBUG_CMAKE-3.6.2 => passed: passed=284,notpassed=0 (0.62 min)
3) SERIAL_RELEASE_CMAKE-3.6.2 => passed: passed=284,notpassed=0 (0.53 min)
Other local commits for this build/test group: 6e3d7d2, f22a20e, 09cc5c4
bartlettroscoe added a commit to trilinos/Trilinos that referenced this pull request Nov 10, 2017
Allows override of --std=<cstd> for compiling C files (TriBITSPub/TriBITS#239)

Build/Test Cases Summary
Enabled Packages:
Disabled Packages: PyTrilinos,Claps,TriKota
Enabled all Packages
0) MPI_RELEASE_DEBUG_SHARED_PT => passed: passed=2501,notpassed=0 (105.92 min)
Other local commits for this build/test group: e8ab9eb
prwolfe added a commit to trilinos/Trilinos that referenced this pull request Nov 13, 2017
This file should be merged to Trilinos only after
pull request #239 in TriBITSPub has been propigated
to Trilinos. (TriBITSPub/TriBITS#239)
It merely sets the override for the sierra builds to
be the c11 posix standard.
@prwolfe prwolfe deleted the add_c_standard_input_flag branch April 24, 2018 14:31
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.

2 participants