gcc@6: remove options

This commit is contained in:
FX Coudert 2018-12-07 13:55:10 +13:00
parent c0a4206361
commit dcf043b2c8

View file

@ -18,9 +18,6 @@ class GccAT6 < Formula
satisfy { MacOS::CLT.installed? }
end
option "with-nls", "Build with native language support (localization)"
option "with-jit", "Build the jit compiler"
depends_on "gmp"
depends_on "isl"
depends_on "libmpc"
@ -31,22 +28,12 @@ class GccAT6 < Formula
fails_with :gcc_4_0
# Fix for libgccjit.so linkage on Darwin
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
# https://github.com/Homebrew/homebrew-core/issues/1872#issuecomment-225625332
# https://github.com/Homebrew/homebrew-core/issues/1872#issuecomment-225626490
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/e9e0ee09389a54cc4c8fe1c24ebca3cd765ed0ba/gcc/6.1.0-jit.patch"
sha256 "863957f90a934ee8f89707980473769cff47ca0663c3906992da6afb242fb220"
end
def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"
# C, C++, ObjC, Fortran compilers are always built
languages = %w[c c++ objc obj-c++ fortran]
languages << "jit" if build.with? "jit"
version_suffix = version.to_s.slice(/\d/)
@ -78,6 +65,7 @@ class GccAT6 < Formula
"--disable-werror",
"--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*" "}".strip,
"--with-bugurl=https://github.com/Homebrew/homebrew-core/issues",
"--disable-nls",
]
# The pre-Mavericks toolchain requires the older DWARF-2 debugging data
@ -85,9 +73,6 @@ class GccAT6 < Formula
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
args << "--with-dwarf2" if MacOS.version <= :mountain_lion
args << "--disable-nls" if build.without? "nls"
args << "--enable-host-shared" if build.with?("jit")
# Xcode 10 dropped 32-bit support
args << "--disable-multilib" if DevelopmentTools.clang_build_version >= 1000