aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-08-17 22:13:30 +0800
committerXu Cheng2016-08-17 22:13:30 +0800
commitc8d814f907186046d03541873ef8fa863ac92d10 (patch)
tree095285f7c4fded45dd98a6b2a13ebbc807ae85a9 /Library
parent3774b4641f4b001ae651c80e040b3b9959640b78 (diff)
downloadbrew-c8d814f907186046d03541873ef8fa863ac92d10.tar.bz2
ENV/super: use Hardware::CPU.is_32_bit?
`Hardware.is_32_bit?` is deprecated.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 6351449ca..ff7e5b475 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -277,7 +277,7 @@ module Superenv
self["HOMEBREW_ARCHFLAGS"] = Hardware::CPU.universal_archs.as_arch_flags
# GCC doesn't accept "-march" for a 32-bit CPU with "-arch x86_64"
- if compiler != :clang && Hardware.is_32_bit?
+ if compiler != :clang && Hardware::CPU.is_32_bit?
self["HOMEBREW_OPTFLAGS"] = self["HOMEBREW_OPTFLAGS"].sub(
/-march=\S*/,
"-Xarch_#{Hardware::CPU.arch_32_bit} \\0"