shims/linux/super/cc: Revert unnecessary changes
This commit is contained in:
parent
76bfd0cecb
commit
40afe1cf29
@ -152,8 +152,6 @@ class Cmd
|
||||
/^-O[0-9zs]?$/, "-fast", "-no-cpp-precomp",
|
||||
"-pedantic", "-pedantic-errors", "-Wno-long-double",
|
||||
"-Wno-unused-but-set-variable"
|
||||
when "-liconv", "-lintl"
|
||||
# Not needed on Linux.
|
||||
when "-fopenmp", "-lgomp", "-mno-fused-madd", "-fforce-addr", "-fno-defer-pop",
|
||||
"-mno-dynamic-no-pic", "-fearly-inlining", /^-f(?:no-)?inline-functions-called-once/,
|
||||
/^-finline-limit/, /^-f(?:no-)?check-new/, "-fno-delete-null-pointer-checks",
|
||||
@ -175,6 +173,8 @@ class Cmd
|
||||
args << arg
|
||||
when /^-W.*/
|
||||
# prune warnings
|
||||
when "-macosx_version_min", "-dylib_install_name"
|
||||
args << "-Wl,#{arg},#{enum.next}"
|
||||
when "-multiply_definedsuppress"
|
||||
args << "-Wl,-multiply_defined,suppress"
|
||||
when "-undefineddynamic_lookup"
|
||||
@ -341,7 +341,7 @@ if __FILE__ == $PROGRAM_NAME
|
||||
|
||||
if (cc = ENV["HOMEBREW_CC"]).nil? || cc.empty? || cc == "cc"
|
||||
# those values are not allowed
|
||||
ENV["HOMEBREW_CC"] = "gcc"
|
||||
ENV["HOMEBREW_CC"] = "clang"
|
||||
end
|
||||
|
||||
####################################################################### main
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user