From 04cb8f2a7820fbe0a7fd8421edeac31cf215ba63 Mon Sep 17 00:00:00 2001 From: Win Treese Date: Thu, 24 Jan 2019 16:30:00 -0500 Subject: [PATCH] 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. --- Library/Homebrew/shims/super/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 008b015efc..2c90e5e939 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -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"