From ac60ff2b14fde6ef7ffe291ab3e1a3c4fe9892e8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 25 Aug 2011 00:27:44 +0100 Subject: [PATCH] -march=native doesn't work at all. Gee. Fixes Homebrew/homebrew#7185. --- Library/Homebrew/extend/ENV.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 86de1a35ab..dc1c938988 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -62,7 +62,9 @@ module HomebrewEnvExtension 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" + # UPDATE with Xcode 4.1 doesn't work at all. + # TODO there must be something useful!? + #cflags << "-march=native" end # gcc doesn't auto add msse4 or above (based on march flag) yet case Hardware.intel_family