superenv: also filter out -mcpu=

On PPC, -mcpu is the preferred equivalent to -march.
This commit is contained in:
Misty De Meo 2013-08-28 20:01:58 -07:00
parent e5cd33c7a9
commit 8a99ea2094

View File

@ -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'