From 71580becb88671d30fa59a293be6957bf59f24af Mon Sep 17 00:00:00 2001 From: mbcoguno Date: Sun, 29 Dec 2013 22:09:49 +0800 Subject: ume, mess: reduce optimization in clang. Closes #25536. Signed-off-by: Mike McQuaid --- Library/Formula/mess.rb | 5 +++++ Library/Formula/ume.rb | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'Library/Formula') 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? -- cgit v1.2.3