ume, mess: reduce optimization in clang.

Closes Homebrew/homebrew#25536.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
mbcoguno 2013-12-29 22:09:49 +08:00 committed by Mike McQuaid
parent a39668ab38
commit 5ad23ebd6d
2 changed files with 10 additions and 0 deletions

View file

@ -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"

View file

@ -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?