Skip to content

gcc: use -dumpfullversion for version 7#6111

Merged
scheibelp merged 1 commit intospack:developfrom
mathstuf:gcc-7-version-detection
Nov 3, 2017
Merged

gcc: use -dumpfullversion for version 7#6111
scheibelp merged 1 commit intospack:developfrom
mathstuf:gcc-7-version-detection

Conversation

@mathstuf
Copy link
Copy Markdown
Contributor

@mathstuf mathstuf commented Nov 2, 2017

Fixes #5778.


Cc: @RezaLTM @balay

@mathstuf mathstuf requested a review from scheibelp November 2, 2017 19:09

return super(Gcc, cls).default_version(cc)
version = super(Gcc, cls).default_version(cc)
if version in ['7']:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version == '7'? No need for a list if you only compare a single element.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCC 8 is already in the pipeline; it won't be just GCC 7 doing this.

@scheibelp scheibelp merged commit 7630503 into spack:develop Nov 3, 2017
@scheibelp
Copy link
Copy Markdown
Member

Thanks!

@mathstuf mathstuf deleted the gcc-7-version-detection branch November 3, 2017 20:04
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.

4 participants