Skip to content
Snippets Groups Projects
Unverified Commit eaa1eb4b authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #4831 from alebcay/homebrew-arch

std: use HOMEBREW_ARCH env var on Linux
parents 11ac4db0 90c25bf9
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@ module Stdenv
# @private
SAFE_CFLAGS_FLAGS = "-w -pipe".freeze
DEFAULT_FLAGS = "-march=core2 -msse4".freeze
HOMEBREW_ARCH = (ENV["HOMEBREW_ARCH"] || "native").freeze
DEFAULT_FLAGS = (OS.mac? ? "-march=core2 -msse4" : "-march=#{HOMEBREW_ARCH}").freeze
# @private
def setup_build_environment(formula = nil)
......
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