From 10feb681282be3cdbe3414739b2d10ef44c25e2c Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Fri, 10 Jul 2020 10:32:30 -0700 Subject: [PATCH] Add support for -march=sandybridge HHVM's been building with this (or equivalent predecessor patches); it gets us a 20x speedup on real-world workloads, at the cost of slightly worse compatibility. This doesn't change the default, just makes it available as an explicit choice. --- Library/Homebrew/hardware.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 789b34fb9c..12a3d32a95 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -14,6 +14,7 @@ module Hardware @optimization_flags ||= { native: arch_flag("native"), nehalem: "-march=nehalem", + sandybridge: "-march=sandybridge", core2: "-march=core2", core: "-march=prescott", arm_vortex_tempest: "",