gcc: set better version number for HEAD builds (#4783)
This commit is contained in:
parent
7b2687bcfe
commit
c3ef065e96
1 changed files with 5 additions and 1 deletions
|
@ -73,8 +73,12 @@ class Gcc < Formula
|
|||
end
|
||||
|
||||
def version_suffix
|
||||
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
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
|
||||
|
|
Loading…
Reference in a new issue