From 6b058b73685a748a6351551dc06681ffece7f549 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Fri, 15 Nov 2024 09:52:27 +0800 Subject: [PATCH 1/2] wasi-runtimes: reduce `:build` dependencies We don't need the linkers at build-time if we set `CMAKE_TRY_COMPILE_TARGET_TYPE` to `STATIC_LIBRARY`. --- Formula/w/wasi-runtimes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/w/wasi-runtimes.rb b/Formula/w/wasi-runtimes.rb index 62e5312c3ddd3..a6a579b2faa93 100644 --- a/Formula/w/wasi-runtimes.rb +++ b/Formula/w/wasi-runtimes.rb @@ -21,9 +21,9 @@ class WasiRuntimes < Formula end depends_on "cmake" => :build - depends_on "lld" => [:build, :test] depends_on "wasi-libc" => [:build, :test] - depends_on "wasm-component-ld" => [:build, :test] + depends_on "lld" => :test + depends_on "wasm-component-ld" => :test depends_on "wasmtime" => :test depends_on "llvm" @@ -55,6 +55,7 @@ def install -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_SYSROOT=#{wasi_libc.opt_share}/wasi-sysroot + -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY -DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=#{HOMEBREW_LIBRARY_PATH}/cmake/trap_fetchcontent_provider.cmake From 1dc5b5301d3166117ae06d23149edabd027d9e2d Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 16 Nov 2024 13:52:44 +0000 Subject: [PATCH 2/2] wasi-runtimes: update 19.1.3 bottle. --- Formula/w/wasi-runtimes.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/w/wasi-runtimes.rb b/Formula/w/wasi-runtimes.rb index a6a579b2faa93..ec04713563f33 100644 --- a/Formula/w/wasi-runtimes.rb +++ b/Formula/w/wasi-runtimes.rb @@ -11,13 +11,13 @@ class WasiRuntimes < Formula end bottle do - rebuild 1 - sha256 cellar: :any_skip_relocation, arm64_sequoia: "6a416ceb547e428f6fa7ba55c1f955889504dc92ad62ad0c23d3e52c0aca4dff" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "827a14dab71af9ca068ebe22e3e5a8cefb87f3f69f93011d9e9c4feb36d054b2" - sha256 cellar: :any_skip_relocation, arm64_ventura: "10a1a47517183e7b2e92f45dffae7142b261332a2a187c37677690684d69c30a" - sha256 cellar: :any_skip_relocation, sonoma: "ada587bb34d56e564ad457584c1e100ae5b505dc16d79e9e22840353106234ff" - sha256 cellar: :any_skip_relocation, ventura: "17bb1834271dbed6588418961a23891cd2682b3f717bb1d82157dbaf87fc4519" - sha256 cellar: :any_skip_relocation, x86_64_linux: "cf2e167df3de25498aca9b287f2880d99a0b20de5e2710166063a8dd4ad5912f" + rebuild 2 + sha256 cellar: :any_skip_relocation, arm64_sequoia: "407d8f5515eeb0c443c72ee65936ce362560b62d50787a098d4ace42cab7b356" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "9d19c4646703cf96b1fabbc25dd0c9b28fcb5f448f6362b8411df884191f51df" + sha256 cellar: :any_skip_relocation, arm64_ventura: "26a3fcb3f14649a6e9532a6d6944e1ec251e6146438f638795d52b264c12e4af" + sha256 cellar: :any_skip_relocation, sonoma: "ac92285ab2996d0a377cfc6b307ad84a3f34208760bb8301ddee62626e7d9859" + sha256 cellar: :any_skip_relocation, ventura: "142c5fcdf46f3c0a6d30ed428a4d605bb0dba236eee5efc25e8ca9a43097ef43" + sha256 cellar: :any_skip_relocation, x86_64_linux: "552aa9660900fe06d884d14ce7cd9b6389f7d4535f7f039a52cc5450477d23bf" end depends_on "cmake" => :build