gcc@4.9: fix component order

This commit is contained in:
commitay 2018-09-21 13:51:57 +10:00
parent fb28f6dfaf
commit 97742bc561

View file

@ -32,12 +32,22 @@ class GccAT49 < Formula
sha256 "1c407f31d58ab8e41230a83c6ffd1d77503c0c6528ccbc182f6888c23c5fb972" => :el_capitan
end
# The bottles are built on systems with the CLT installed, and do not work
# out of the box on Xcode-only systems due to an incorrect sysroot.
pour_bottle? do
reason "The bottle needs the Xcode CLT to be installed."
satisfy { MacOS::CLT.installed? }
end
option "with-nls", "Build with native language support (localization)"
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
deprecated_option "enable-nls" => "with-nls"
deprecated_option "enable-profiled-build" => "with-profiled-build"
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
resource "gmp" do
url "https://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.bz2"
mirror "https://ftpmirror.gnu.org/gmp/gmp-4.3.2.tar.bz2"
@ -74,16 +84,6 @@ class GccAT49 < Formula
sha256 "325adf3710ce2229b7eeb9e84d3b539556d093ae860027185e7af8a8b00a750e"
end
# The bottles are built on systems with the CLT installed, and do not work
# out of the box on Xcode-only systems due to an incorrect sysroot.
pour_bottle? do
reason "The bottle needs the Xcode CLT to be installed."
satisfy { MacOS::CLT.installed? }
end
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
# Fix build with Xcode 9
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82091
if DevelopmentTools.clang_build_version >= 900