mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 20:09:41 -05:00
Use -march=native when we don't otherwise know
I believe this works nowadays. When I created Homebrew originally, it did nothing. Hence all the other logic.
This commit is contained in:
1 parent
22b829b2d9
commit
bfda554d30
1 file changed
+4
@@ -59,6 +59,10 @@ module HomebrewEnvExtension
|
||||
cflags << "-march=core2"
|
||||
when :core
|
||||
cflags<<"-march=prescott"<<"-mfpmath=sse"
|
||||
else
|
||||
# note that this didn't work on older versions of Xcode's gcc
|
||||
# and maybe still doesn't. But it's at least not worse than nothing.
|
||||
cflags << "-march=native"
|
||||
end
|
||||
# gcc doesn't auto add msse4 or above (based on march flag) yet
|
||||
case Hardware.intel_family
|
||||
|
||||
Reference in new issue
Block a user