Fix regexp to allow multiple digits in Mac OS minor version.
The regular expression check for the -mmacosx-version-min value only looked at a single digit in the minor version number, so it did not compare correctly if the option was setting the minimum version to (say) 10.11.
This commit is contained in:
parent
40bfc39912
commit
04cb8f2a78
@ -190,7 +190,7 @@ class Cmd
|
|||||||
when "-Xpreprocessor"
|
when "-Xpreprocessor"
|
||||||
# used for -Xpreprocessor -fopenmp
|
# used for -Xpreprocessor -fopenmp
|
||||||
args << arg << enum.next
|
args << arg << enum.next
|
||||||
when /-mmacosx-version-min=10\.(\d)/
|
when /-mmacosx-version-min=10\.(\d+)/
|
||||||
arg = "-mmacosx-version-min=10.9" if high_sierra_or_later? && $1.to_i < 9
|
arg = "-mmacosx-version-min=10.9" if high_sierra_or_later? && $1.to_i < 9
|
||||||
args << arg
|
args << arg
|
||||||
when "--fast-math"
|
when "--fast-math"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user