diff options
| author | Jack Nagel | 2014-05-22 09:18:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-22 09:18:34 -0500 |
| commit | 4c91661413f13d327d44b247b7088732d0dc1dcb (patch) | |
| tree | 5efe8ac0615af3fdb92fc97a748f102f78047710 /Library/Homebrew/extend | |
| parent | 2e64c12dd27b9b883fb2a8d80ccc3e00a803c4ca (diff) | |
| download | homebrew-4c91661413f13d327d44b247b7088732d0dc1dcb.tar.bz2 | |
Fix ENV.m32 under superenv
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 18073db46..011b854ab 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -84,7 +84,6 @@ module Superenv # compiler flag stripping. It consists of a string of characters which act # as flags. Some of these flags are mutually exclusive. # - # 3 - A 32-bit build was requested # O - Enables argument refurbishing. Only active under the # make/bsdmake wrappers currently. # x - Enable C++11 mode. @@ -297,6 +296,10 @@ module Superenv append "HOMEBREW_CCCFG", "K" end + def m32 + append "HOMEBREW_ARCHFLAGS", "-m32" + end + def cxx11 case homebrew_cc when "clang" @@ -321,11 +324,6 @@ module Superenv append 'HOMEBREW_CCCFG', "O", '' end - # m32 on superenv does not add any CC flags. It prevents "-m32" from being erased. - def m32 - append 'HOMEBREW_CCCFG', "3", '' - end - %w{O3 O2 O1 O0 Os}.each do |opt| define_method opt do self['HOMEBREW_OPTIMIZATION_LEVEL'] = opt |
