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:
Win Treese 2019-01-24 16:30:00 -05:00
parent 40bfc39912
commit 04cb8f2a78

View File

@ -190,7 +190,7 @@ class Cmd
when "-Xpreprocessor"
# used for -Xpreprocessor -fopenmp
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
args << arg
when "--fast-math"