diff options
| author | Jack Nagel | 2014-05-28 22:46:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-28 22:46:05 -0500 |
| commit | 6c3c5b0a8432bb3d5381ca4bb45bab197af481a2 (patch) | |
| tree | 075ce37f6edd2689434c1d5884e87f698d173e2d | |
| parent | 375c073cec0ce0c18e11fa039e2cbbd4baaa9751 (diff) | |
| download | brew-6c3c5b0a8432bb3d5381ca4bb45bab197af481a2.tar.bz2 | |
Loosen GCC version regexp to allow for custom version strings
| -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 0cced5f73..0cff0e64c 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -129,7 +129,7 @@ module OS ivar = "@#{cc.gsub(/(-|\.)/, '')}_version" return instance_variable_get(ivar) if instance_variable_defined?(ivar) - `#{path} --version` =~ /gcc(-\d\.\d \(GCC\))? (\d\.\d\.\d)/ + `#{path} --version` =~ /gcc(-\d\.\d \(.+\))? (\d\.\d\.\d)/ instance_variable_set(ivar, $2) end |
