Introduce a HOMEBREW_ARCH environment variable to specify target microarchitecture #42
Comments
From @eiennohito on May 16, 2016 4:13
|
Sorry for the breakage, Arseny. Try the following workaround: diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index 3d1b2a8..df84dcf 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -8,7 +8,7 @@ module Stdenv
# @private
SAFE_CFLAGS_FLAGS = "-w -pipe"
- DEFAULT_FLAGS = OS.mac? ? "-march=core2 -msse4" : "-march=native"
+ DEFAULT_FLAGS = "-march=core2 -msse4"
def self.extended(base)
unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/"bin" |
I've added the requested |
Thank you very much, this is great. As a workaround I have temporarily made the Regarding the value, it will be either |
Thanks for this Shaun. To anyone frustrated with trying to compile software using linuxbrew on a Raspberry Pi, note that because Linuxbrew sends |
Thanks for the heads up, Elliot. How frustrating! |
From @eiennohito on April 22, 2016 5:16
It is useful in scenarios when you have heterogenous grid of computers with different microarchitectures and want to build binaries that can be used everywhere.
Discussion is started in #1094.
Copied from original issue: Linuxbrew/legacy-linuxbrew#1095
The text was updated successfully, but these errors were encountered: