diff options
| author | Xu Cheng | 2015-05-19 15:10:14 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-19 16:10:17 +0800 |
| commit | 2ea9d7749b7038655f3cfd395c55770ce75a7561 (patch) | |
| tree | 8add7806171af69f1377154219fee63388d1334e /Library | |
| parent | 4d2da9ebd113b4602abd0d837725cba559c82ba7 (diff) | |
| download | brew-2ea9d7749b7038655f3cfd395c55770ce75a7561.tar.bz2 | |
non_apple_gcc_version: support gcc5
Closes Homebrew/homebrew#39899.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 2f47aa2a3..fd19c3d12 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -124,7 +124,7 @@ module OS (@non_apple_gcc_version ||= {}).fetch(cc) do path = HOMEBREW_PREFIX.join("opt", "gcc", "bin", cc) path = locate(cc) unless path.exist? - version = %x{#{path} --version}[/gcc(?:-\d\.\d \(.+\))? (\d\.\d\.\d)/, 1] if path + version = %x{#{path} --version}[/gcc(?:-\d(?:\.\d)? \(.+\))? (\d\.\d\.\d)/, 1] if path @non_apple_gcc_version[cc] = version end end |
