More flags clang dislikes

This commit is contained in:
Jack Nagel 2014-03-21 13:00:15 -05:00
parent 58456a5469
commit 8d723ff877

View File

@ -128,6 +128,10 @@ class Cmd
args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/ args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/
when '-macosx_version_min', '-dylib_install_name' when '-macosx_version_min', '-dylib_install_name'
args << "-Wl,#{arg},#{whittler.next}" args << "-Wl,#{arg},#{whittler.next}"
when '-multiply_definedsuppress'
args << "-Wl,-multiply_defined,suppress"
when '-undefineddynamic_lookup'
args << "-Wl,-undefined,dynamic_lookup"
when /^-isysroot/ when /^-isysroot/
# We set the sysroot # We set the sysroot
whittler.next whittler.next