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

Prefer -std=* over --std=* #3779

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

masterleinad
Copy link
Contributor

AFAICT -std=* is more standard then --std=* and ICC doesn't seem to like the latter, see https://godbolt.org/z/e6Wshq. In particular, @stanmoore1 was running into an issue as reported in slack.

@dalg24
Copy link
Member

dalg24 commented Feb 4, 2021

Test this please

@masterleinad
Copy link
Contributor Author

Retest this please.

@crtrott
Copy link
Member

crtrott commented Feb 5, 2021

did we test this with older iccs and various clang?

@dalg24
Copy link
Member

dalg24 commented Feb 5, 2021

did we test this with older iccs and various clang?

No, we have very limited testing for the generated makefiles

@masterleinad
Copy link
Contributor Author

did we test this with older iccs and various clang?

I manually went through all iccs that support C++14 I could find on godbolt (which is >=16.0.3)
and all clangs ( >=3.5). I always at least get a warning for icc with --std, also see https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/language-options/std-qstd.html, but clang accepts both for all versions.

@dalg24
Copy link
Member

dalg24 commented Feb 5, 2021

Daniel beats me there. I can confirm what he said

@crtrott crtrott merged commit eaf78e1 into kokkos:develop Feb 5, 2021
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.

None yet

4 participants