diff options
| author | Jack Nagel | 2013-06-13 18:41:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-14 10:34:19 -0500 |
| commit | f9d73212ac725f2bcd0d1f65ad783d1d1996d28a (patch) | |
| tree | a531a0cf07c5eefd3a3faa5633f2d8869ed1a14d /Library | |
| parent | 343ad0cbb3b77f67304ba25cd0884bda9f0e98d1 (diff) | |
| download | homebrew-f9d73212ac725f2bcd0d1f65ad783d1d1996d28a.tar.bz2 | |
Simplify nested conditional
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index f69467bae..591c0485e 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -298,9 +298,9 @@ module HomebrewEnvExtension replace_in_cflags '-O4', '-O3' # O4 seems to cause the build to fail append 'LDFLAGS', '-arch i386 -arch x86_64' - unless compiler == :clang + if compiler != :clang && Hardware.is_32_bit? # Can't mix "-march" for a 32-bit CPU with "-arch x86_64" - replace_in_cflags(/-march=\S*/, '-Xarch_i386 \0') if Hardware::CPU.is_32_bit? + replace_in_cflags(/-march=\S*/, '-Xarch_i386 \0') end end |
