Skip to content

Conversation

@mboisson
Copy link
Contributor

Tested with a NAMD recipe.

wpoely86
wpoely86 previously approved these changes Apr 19, 2017
@boegel
Copy link
Member

boegel commented Apr 19, 2017

@mboisson do we want to be able to specify separate/different flags for C and C++ compilers (i.e. in $CFLAGS and $CXXFLAGS)?

@boegel
Copy link
Member

boegel commented Apr 19, 2017

also, we're missing an enhanced test for this...

@boegel boegel added this to the 3.2.0 milestone Apr 19, 2017
@mboisson
Copy link
Contributor Author

@mboisso do we want to be able to specify separate/different flags for C and C++ compilers (i.e. in $CFLAGS and $CXXFLAGS)?

It would be nice, but there is no current distinction between CFLAGS and CXXFLAGS in the code for any other parameters. I am not sure why this is the case, but the purpose of this PR is not to introduce such as split (even though I think there should be one).

@mboisson
Copy link
Contributor Author

also, we're missing an enhanced test for this...

I have to say I'm lost when it comes to tests. Any pointers as to what I should do ? Extra arguments can be anything. There is no sample code that I can compile for anything.

@mboisson
Copy link
Contributor Author

Any guidance as to how to create the missing tests ?

@boegel
Copy link
Member

boegel commented Apr 26, 2017

@mboisson Examples of tests that check what goes into $CFLAGS & co and fiddle with toolchain options are in test/framework/toolchain.py, see for example test_misc_flags_shared

We should really extend this to cover $CXXFLAGS separately though, I can help with that, hopefully sometime next week.

Are you OK with not including this in EasyBuild v3.2.0 (which I hope to release next week)?

@mboisson
Copy link
Contributor Author

Sure. We have merged it in our own fork anyway, so we are using it.

@boegel boegel modified the milestones: 3.2.0, 3.3.0 May 2, 2017
@boegel boegel modified the milestones: 3.3.0, 3.x Jun 22, 2017
@mboisson
Copy link
Contributor Author

Did you have time to extend on this ?

@boegel
Copy link
Member

boegel commented Aug 31, 2017

@mboisson I'm afraid not, not sure when I'll find the time to flesh this out...

@akesandgren
Copy link
Contributor

@mboisson What is the status of this? Looks like we need to kick travis if we want to move forward on it...

@mboisson
Copy link
Contributor Author

Mmm, the status is issue-necropsy :P I haven't touched this for two years. @boegel wanted some changes

@bartoldeman
Copy link
Contributor

I discussed this with @boegel briefly last week, had forgotten you filed a PR... basically this is one of only two changes we have left in our fork (the other change pertains to the permissions of the temporary file folders /tmp/eb-* so we can look at each others' logs on the build node, but that is still to be PR'ed.

He mentioned that a generic --optflags CLI option is another way to do this and we could have a good look at that.

Neither of us is working this week though :)

@boegel boegel modified the milestones: 3.x, 4.x Feb 20, 2020
@boegel
Copy link
Member

boegel commented Nov 10, 2020

Tested with Boost easyconfig from easybuilders/easybuild-easyconfigs#11642 that uses extra_cxxflags in toolchainopts, works like a charm!

Thanks a lot both @mboisson and @bartoldeman!

@boegel boegel changed the title Added toolchain options to specify extra compiler arguments add support for toolchain options like 'extra_cxxflags' to specify extra compiler options Nov 10, 2020
@boegel boegel merged commit 9c041f1 into easybuilders:develop Nov 10, 2020
@boegel boegel modified the milestones: 4.x, 4.3.2 Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants