aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2016-01-11 22:23:33 -0400
committerMisty De Meo2016-01-11 22:23:53 -0400
commit256aea180adc1ca891d575ef1ab4bd558f6a8489 (patch)
treef9d9aece85bfda512eb610b0064f001ed227eddd /Library
parent9810c2a412526346797f2f1ef60ddbccddeca2cb (diff)
downloadbrew-256aea180adc1ca891d575ef1ab4bd558f6a8489.tar.bz2
superenv: filter flags for older GCCs
Fixes mistydemeo/tigerbrew#371. Fixes Homebrew/homebrew#47949.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 2ce4bf73d..c1adc5699 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -149,6 +149,9 @@ class Cmd
"-fuse-linker-plugin"
# clang doesn't support these flags
args << arg unless tool =~ /^clang/
+ when "-Wno-deprecated-register"
+ # older gccs don't support these flags
+ args << arg unless tool =~ /^gcc-4.[02]/
when /^-W[alp],/, /^-Wno-/
args << arg
when /^-W.*/