aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 383941807..92b09a48c 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -184,22 +184,7 @@ class Cmd
def optflags
args = []
args << "-#{ENV['HOMEBREW_OPTIMIZATION_LEVEL']}"
-
- # When bottling use the oldest supported CPU type.
- if cccfg? 'bc'
- # Custom bottle specified during the build
- args << ENV['HOMEBREW_ARCHFLAGS']
- elsif cccfg? 'bi6'
- args << '-march=core2'
- elsif cccfg? 'bi'
- args << '-march=prescott'
- elsif cccfg? 'bpA'
- args << '-mcpu=7400'
- elsif cccfg? 'bp'
- args << '-mcpu=750'
- else
- args << '-march=native' if tool =~ /clang/
- end
+ args.concat ENV['HOMEBREW_OPTFLAGS'].split(' ') if ENV['HOMEBREW_OPTFLAGS']
args
end
def archflags