aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCamillo Lugaresi2012-02-06 21:54:02 -0600
committerAdam Vandenberg2012-02-19 11:45:15 -0800
commit5ae547ad79e0896a6939f3c76340bf5731f91f16 (patch)
tree1310d7749478f0d7c0b1bb7332fea26cd0ba1547 /Library
parent6685989092d920ddf8651988e399bbe9c7292cd4 (diff)
downloadhomebrew-5ae547ad79e0896a6939f3c76340bf5731f91f16.tar.bz2
add ENV.O1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index c93224e9b..41d0cdf76 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -75,6 +75,11 @@ module HomebrewEnvExtension
remove_from_cflags(/-O./)
append_to_cflags '-g -O0'
end
+ def O1
+ # Sometimes even O2 doesn't work :(
+ remove_from_cflags(/-O./)
+ append_to_cflags '-O1'
+ end
def gcc_4_0_1
# we don't use xcrun because gcc 4.0 has not been provided since Xcode 4