Merge pull request #5606 from treese/fix-set-min-version

Fix regexp to allow multiple digits in Mac OS minor version.
This commit is contained in:
Mike McQuaid 2019-01-25 15:18:29 +00:00 committed by GitHub
commit 2cc50864cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"