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