ccache 4.4.1
Closes #85131. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
d1c30e168d
commit
cdce760a3c
|
@ -1,8 +1,8 @@
|
|||
class Ccache < Formula
|
||||
desc "Object-file caching compiler wrapper"
|
||||
homepage "https://ccache.dev/"
|
||||
url "https://github.com/ccache/ccache/releases/download/v4.4/ccache-4.4.tar.xz"
|
||||
sha256 "b40bea2ecf88fc15d4431f0d5fb8babf018d7218eaded0f40e07d4c18c667561"
|
||||
url "https://github.com/ccache/ccache/releases/download/v4.4.1/ccache-4.4.1.tar.xz"
|
||||
sha256 "ebd6dfb5b15dfe39310e1f5834bafbe6ab526c71df8ad08a508e8a242bad8159"
|
||||
license "GPL-3.0-or-later"
|
||||
head "https://github.com/ccache/ccache.git", branch: "master"
|
||||
|
||||
|
@ -28,8 +28,19 @@ class Ccache < Formula
|
|||
fails_with gcc: "5"
|
||||
|
||||
def install
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DENABLE_IPO=TRUE"
|
||||
system "cmake", "--build", "build"
|
||||
|
||||
# Homebrew compiler shim actively prevents ccache usage (see caveats), which will break the test suite.
|
||||
# We run the test suite for ccache because it provides a more in-depth functional test of the software
|
||||
# (especially with IPO enabled), adds negligible time to the build process, and we don't actually test
|
||||
# this formula properly in the test block since doing so would be too complicated.
|
||||
# See https://github.com/Homebrew/homebrew-core/pull/83900#issuecomment-90624064
|
||||
with_env(CC: DevelopmentTools.locate(DevelopmentTools.default_compiler)) do
|
||||
system "ctest", "-j#{ENV.make_jobs}", "--test-dir", "build"
|
||||
end
|
||||
|
||||
system "cmake", "--install", "build"
|
||||
|
||||
libexec.mkpath
|
||||
|
||||
|
|
Loading…
Reference in New Issue