aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yaws.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-08-01 20:40:42 -0700
committerMisty De Meo2013-08-15 22:46:56 -0700
commita354451a1aeb7b3094001554bd5b683cdc538ed0 (patch)
tree56e58684105d24ea767d3b38b7c72b473918e681 /Library/Formula/yaws.rb
parent89eecf23369de6829a01c68249a42562b1a30247 (diff)
downloadhomebrew-a354451a1aeb7b3094001554bd5b683cdc538ed0.tar.bz2
Use Hardware::CPU.arch(32|64)_bit in formulae
Diffstat (limited to 'Library/Formula/yaws.rb')
-rw-r--r--Library/Formula/yaws.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb
index 72e4e502c..8a74de40a 100644
--- a/Library/Formula/yaws.rb
+++ b/Library/Formula/yaws.rb
@@ -18,8 +18,8 @@ class Yaws < Formula
def install
if build.build_32_bit?
%w{ CFLAGS LDFLAGS }.each do |compiler_flag|
- ENV.remove compiler_flag, "-arch x86_64"
- ENV.append compiler_flag, "-arch i386"
+ ENV.remove compiler_flag, "-arch #{Hardware::CPU.arch_64_bit}"
+ ENV.append compiler_flag, "-arch #{Hardware::CPU.arch_32_bit}"
end
end