Skip to content

Commit 95e4625

Browse files
authored
Merge pull request #218927 from Homebrew/metashell-sse4
metashell: remove `-msse4.1` if not compatible with target
2 parents 5f9ee47 + 927befa commit 95e4625

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Formula/m/metashell.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ class Metashell < Formula
3434
sha256 "31472db5ae8e67483319dcbe104d5c7a533031f9845af2ddf5147f3caabf3ac2"
3535
end
3636

37+
# fix build with cmake 4, upstream PR ref, https://github.com/metashell/metashell/pull/306
38+
patch do
39+
url "https://github.com/metashell/metashell/commit/38b524ae291799a7ea9077745d3fc10ef2d40d54.patch?full_index=1"
40+
sha256 "e97590ca1d2b5510dcfcca86aa608e828040bb91519f6b161f7b4311676f4fd4"
41+
end
42+
3743
def install
44+
# remove -msse4.1 if unsupported, issue ref: https://github.com/metashell/metashell/issues/305
45+
inreplace "3rd/boost/atomic/CMakeLists.txt", /\btarget_compile_options.*-msse4/, "#\\0" if Hardware::CPU.arm?
46+
3847
# Build internal Clang
3948
system "cmake", "-S", "3rd/templight/llvm",
4049
"-B", "build/templight",

0 commit comments

Comments
 (0)