aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMisty De Meo2013-08-28 20:01:58 -0700
committerMisty De Meo2013-08-28 20:01:58 -0700
commit8a99ea209478f574a64eabd9e84472b80665e7ca (patch)
tree266c7a6d045d57c4419b9336cfd76b3974929c66 /Library/ENV
parente5cd33c7a96a181bedf5cd033d509e2bf720745d (diff)
downloadbrew-8a99ea209478f574a64eabd9e84472b80665e7ca.tar.bz2
superenv: also filter out -mcpu=
On PPC, -mcpu is the preferred equivalent to -march.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index fd22bb373..39af59266 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -113,7 +113,7 @@ class Cmd
# If ENV.m32 was set, we allow the "-m32" flag, but we don't add anything
args << '-m32' if cccfg? '3'
when /^-g\d?/, /^-gstabs\d+/, '-gstabs+', /^-ggdb\d?/, '-gdwarf-2',
- /^-march=.+/, /^-mtune=.+/, '-m64',
+ /^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, '-m64',
/^-O[0-9zs]?$/, '-fast',
'-pedantic', '-pedantic-errors'
when '-fopenmp', '-lgomp'