diff --git a/Formula/s/sdcv.rb b/Formula/s/sdcv.rb index 18d690bf45cd..e09d17c29124 100644 --- a/Formula/s/sdcv.rb +++ b/Formula/s/sdcv.rb @@ -28,6 +28,13 @@ class Sdcv < Formula uses_from_macos "zlib" + # fix type mismatch and memory deallocation build errors + # upstream PR ref, https://github.com/Dushistov/sdcv/pull/103 + patch do + url "https://github.com/Dushistov/sdcv/commit/c2bb4e3fe51f9b9940440ea81d5d97b56d5582e7.patch?full_index=1" + sha256 "70c4c826c2dcd4c0aad5fa8f27b7e079f4461cfbbb380b4726aa4dfd8fb75a1c" + end + def install system "cmake", "-S", ".", "-B", "build", *std_cmake_args system "cmake", "--build", "build", "--target", "lang"