Skip to content

Commit 85b2a61

Browse files
authored
Merge pull request Homebrew#218319 from Homebrew/c2rust-cmake-4
c2rust: add cmake 4.0 build patch
2 parents 200612b + 9e1cd11 commit 85b2a61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Formula/c/c2rust.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ class C2rust < Formula
2020
depends_on "rust" => :build
2121
depends_on "llvm@19"
2222

23+
# cmake 4.0 build patch, upstream pr ref, https://github.com/immunant/c2rust/pull/1214
24+
patch do
25+
url "https://github.com/immunant/c2rust/commit/c96c1c0e49d8be452d97b3e13c741324befd7b77.patch?full_index=1"
26+
sha256 "9670a043ffade24eb014e6fee69707ab69df81ea76f9973fd7d4a68499362013"
27+
end
28+
2329
def install
2430
system "cargo", "install", *std_cargo_args(path: "c2rust")
31+
2532
pkgshare.install "examples"
2633
end
2734

0 commit comments

Comments
 (0)