From 8a99ea209478f574a64eabd9e84472b80665e7ca Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 28 Aug 2013 20:01:58 -0700 Subject: [PATCH] superenv: also filter out -mcpu= On PPC, -mcpu is the preferred equivalent to -march. --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index fd22bb373b..39af592666 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'