gcc: set better version number for HEAD builds (#4783)

This commit is contained in:
Alex Wang 2016-10-15 06:56:45 -04:00 committed by Mike McQuaid
parent 7b2687bcfe
commit c3ef065e96

View file

@ -73,8 +73,12 @@ class Gcc < Formula
end end
def version_suffix def version_suffix
if build.head?
(stable.version.to_s.slice(/\d/).to_i + 1).to_s
else
version.to_s.slice(/\d/) version.to_s.slice(/\d/)
end end
end
# Fix for libgccjit.so linkage on Darwin # Fix for libgccjit.so linkage on Darwin
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089