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