aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mess.rb5
-rw-r--r--Library/Formula/ume.rb5
2 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/mess.rb b/Library/Formula/mess.rb
index 0672c65b8..934174f61 100644
--- a/Library/Formula/mess.rb
+++ b/Library/Formula/mess.rb
@@ -15,6 +15,11 @@ class Mess < Formula
ENV['INCPATH'] = "-I#{MacOS::X11.include}"
ENV['PTR64'] = (MacOS.prefer_64_bit? ? '1' : '0')
+ # Avoid memory allocation runtime error:
+ # Error: attempt to free untracked memory in (null)(0)!
+ # Ignoring MAME exception: Error: attempt to free untracked memory
+ ENV.O2 if ENV.compiler == :clang
+
system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}",
"TARGET=mess", "SUBTARGET=mess"
diff --git a/Library/Formula/ume.rb b/Library/Formula/ume.rb
index a13ddf168..a22dbc0ff 100644
--- a/Library/Formula/ume.rb
+++ b/Library/Formula/ume.rb
@@ -15,6 +15,11 @@ class Ume < Formula
ENV['INCPATH'] = "-I#{MacOS::X11.include}"
ENV['PTR64'] = (MacOS.prefer_64_bit? ? '1' : '0')
+ # Avoid memory allocation runtime error:
+ # Error: attempt to free untracked memory in (null)(0)!
+ # Ignoring MAME exception: Error: attempt to free untracked memory
+ ENV.O2 if ENV.compiler == :clang
+
system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}", "TARGET=ume"
if MacOS.prefer_64_bit?