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,7 +73,11 @@ class Gcc < Formula
end
def version_suffix
version.to_s.slice(/\d/)
if build.head?
(stable.version.to_s.slice(/\d/).to_i + 1).to_s
else
version.to_s.slice(/\d/)
end
end
# Fix for libgccjit.so linkage on Darwin