File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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" , /\b target_compile_options.*-msse4/ , "#\\ 0" if Hardware ::CPU . arm?
46+
3847 # Build internal Clang
3948 system "cmake" , "-S" , "3rd/templight/llvm" ,
4049 "-B" , "build/templight" ,
You can’t perform that action at this time.
0 commit comments