From 7f56ea4fb59ef5118323c9788f07f1d2d6a360a2 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Mon, 24 Dec 2018 15:38:33 +0100 Subject: [PATCH] cctools: remove options --- Formula/cctools.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Formula/cctools.rb b/Formula/cctools.rb index b70ea3bb6c..372e5babf1 100644 --- a/Formula/cctools.rb +++ b/Formula/cctools.rb @@ -29,9 +29,6 @@ class Cctools < Formula cxxstdlib_check :skip if MacOS.version >= :snow_leopard - option "with-llvm", "Build with LTO support" - depends_on "llvm" => :optional - # These patches apply to cctools 855, for newer OSes patch :p0 do url "https://raw.githubusercontent.com/Homebrew/formula-patches/db27850/cctools/cctools-829-lto.patch" @@ -100,17 +97,13 @@ class Cctools < Formula def install ENV.deparallelize # see https://github.com/mistydemeo/tigerbrew/issues/102 - if build.with? "llvm" - inreplace "libstuff/lto.c", "@@LLVM_LIBDIR@@", Formula["llvm"].opt_lib - end - args = %W[ RC_ProjectSourceVersion=#{version} USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC=#{ENV.cc} CXX=#{ENV.cxx} - LTO=#{"-DLTO_SUPPORT" if build.with? "llvm"} + LTO= RC_CFLAGS=#{ENV.cflags} TRIE= RC_OS="macos"