From 1fb6c056dc968f47711d530864206647ba9b8757 Mon Sep 17 00:00:00 2001 From: Rafael Antunes Date: Wed, 27 Sep 2023 14:48:56 +0200 Subject: [PATCH] erlang@25: Workaround for Mac OS Sonoma This basically disables JIT compiling for now since the way erlang@25 does JIT compiling is not supported by Mac OS Sonoma. See this for more information: https://github.com/erlang/otp/issues/7687 erlang@25: disable JIT on arm64 Sonoma only --- Formula/e/erlang@25.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/e/erlang@25.rb b/Formula/e/erlang@25.rb index 48eb9f487f29..c81ea5be327d 100644 --- a/Formula/e/erlang@25.rb +++ b/Formula/e/erlang@25.rb @@ -62,6 +62,7 @@ def install if OS.mac? args << "--enable-darwin-64bit" args << "--enable-kernel-poll" if MacOS.version > :el_capitan + args << "--disable-jit" if MacOS.version == :sonoma && Hardware::CPU.arm? args << "--with-dynamic-trace=dtrace" if MacOS::CLT.installed? end