From d6bc5f42f09bf27d35159ce39c0845c50da25d10 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 14 Mar 2014 16:46:56 +0000 Subject: [PATCH] cc: filter more flags clang hates. Should help with the Xcode 5.1 madness. Closes Homebrew/homebrew#27549. --- Library/ENV/4.3/cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index e89f176f07..8c2549a118 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -119,8 +119,9 @@ class Cmd /^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, '-m64', /^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp', '-pedantic', '-pedantic-errors' - when '-fopenmp', '-lgomp' - # clang doesn't support OpenMP + when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', + '-fno-defer-pop' + # clang doesn't support these flags args << arg if not tool =~ /^clang/ when /^-W.*/ args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/