gcc 11.1.0

Also, update livecheck and remove sed shim fix.

Co-authored-by: FX Coudert <fxcoudert@gmail.com>
master
Carlo Cabrera 2021-04-08 23:39:48 +01:00 committed by BrewTestBot
parent b4e38c605e
commit f64482d6ca
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 8 additions and 18 deletions

View File

@ -4,24 +4,23 @@ class Gcc < Formula
if Hardware::CPU.arm?
# Branch from the Darwin maintainer of GCC with Apple Silicon support,
# located at https://github.com/iains/gcc-darwin-arm64 and
# backported with his help to gcc-10 branch. Too big for a patch.
url "https://github.com/fxcoudert/gcc/archive/gcc-10-arm-20210220.tar.gz"
sha256 "53beed690e4e0355d972ad58917a11e01af1cfe67b2e7602ca1ef89c98417a67"
version "10.2.0"
# backported with his help to gcc-11 branch. Too big for a patch.
url "https://github.com/fxcoudert/gcc/archive/refs/tags/gcc-11.1.0-arm-20210504.tar.gz"
sha256 "ce862b4a4bdc8f36c9240736d23cd625a48af82c2332d2915df0e16e1609a74c"
version "11.1.0"
else
url "https://ftp.gnu.org/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.xz"
mirror "https://ftpmirror.gnu.org/gcc/gcc-10.2.0/gcc-10.2.0.tar.xz"
sha256 "b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c"
url "https://ftp.gnu.org/gnu/gcc/gcc-11.1.0/gcc-11.1.0.tar.xz"
mirror "https://ftpmirror.gnu.org/gcc/gcc-11.1.0/gcc-11.1.0.tar.xz"
sha256 "4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf"
end
license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }
revision 4
head "https://gcc.gnu.org/git/gcc.git"
livecheck do
# Should be
# url :stable
# but that does not work with the ARM-specific branch above
url "https://ftp.gnu.org/gnu/gcc/gcc-10.2.0"
url "https://ftp.gnu.org/gnu/gcc/gcc-11.1.0"
regex(%r{href=.*?gcc[._-]v?(\d+(?:\.\d+)+)(?:/?["' >]|\.t)}i)
end
@ -56,15 +55,6 @@ class Gcc < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
if Hardware::CPU.intel?
# Patch for Big Sur, remove with GCC 10.3
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98805
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6a83f36d/gcc/bigsur_2.patch"
sha256 "347a358b60518e1e0fe3c8e712f52bdac1241e44e6c7738549d969c24095f65b"
end
end
def version_suffix
if build.head?
"HEAD"