Repository navigation
BUG: fix GCC 10 major version comparison - #16468
Merged
Merged
Conversation
Contributor
|
Definitely a bug. I found this as well when working on #13816 when I was using GCC 10.0.1 from the most recent mingw. Can the entire branch that adds "-mno-cygwin" can be removed now since I can't imagine anyone using GCC < 4. |
Contributor
Author
|
Wow thanks for your work on Clang-CL. I think it's important to have more compiler options like clang-cl. |
eric-wieser
reviewed
Jun 1, 2020
The comparison of GCC major version used a string comparison, which is known to break when comparing single vs. double version numbers. This fix compares the integer of the major GCC version. Before this fix, GCC/Gfortran 10 would get inappropriate flag "-mno-cygwin" applied, which was removed in GCC 4 and makes GCC error out.
Member
|
With LooseVersion, this now looks obviously right to me. Merging, thanks everyone! |
lpsinger
added a commit
to nasa/radbelt
that referenced
this pull request
Sep 6, 2022
This should fix the Windows build by working around numpy/numpy#16468.
lpsinger
added a commit
to lpsinger/radbelt
that referenced
this pull request
Sep 7, 2022
lpsinger
added a commit
to lpsinger/radbelt
that referenced
this pull request
Sep 7, 2022
lpsinger
added a commit
to nasa/radbelt
that referenced
this pull request
Sep 7, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The comparison of GCC major version used a string
comparison, which is known to break when comparing
single vs. double version numbers. This fix
compares the integer of the major GCC version.
Before this fix, GCC/Gfortran 10 would get inappropriate
flag "-mno-cygwin" applied, which was removed in GCC 4
and makes GCC error out.