Skip to content
Snippets Groups Projects
Unverified Commit c8d814f9 authored by Xu Cheng's avatar Xu Cheng
Browse files

ENV/super: use Hardware::CPU.is_32_bit?

`Hardware.is_32_bit?` is deprecated.
parent 3774b464
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment