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,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
|
||||
|
|
Loading…
Reference in a new issue