[lld] 37d93b5 - lld: ignore the `-search_paths_first` option on MachO

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 08:36:59 PDT 2020


Author: Saleem Abdulrasool
Date: 2020-06-03T15:36:35Z
New Revision: 37d93b528c1c6dc0f77ee517936de61816707023

URL: https://github.com/llvm/llvm-project/commit/37d93b528c1c6dc0f77ee517936de61816707023
DIFF: https://github.com/llvm/llvm-project/commit/37d93b528c1c6dc0f77ee517936de61816707023.diff

LOG: lld: ignore the `-search_paths_first` option on MachO

ld64 provides the `-search_path_firsts` which will search each path in
the library search path order for both `lib[name].dylib`, `lib[name].a`
before moving on (searching all paths for the dylib and then falling
back to the static library if a shared library was not found).

This option has been the default for a long time, but the command line
flag still exists.  Ignore it for compatibility.

Added: 
    

Modified: 
    lld/MachO/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/MachO/Options.td b/lld/MachO/Options.td
index b6063e823cd2..6b8036d469aa 100644
--- a/lld/MachO/Options.td
+++ b/lld/MachO/Options.td
@@ -36,6 +36,7 @@ def v: Flag<["-"], "v">, HelpText<"Display the version number and exit">;
 def: Flag<["-"], "demangle">;
 def: Flag<["-"], "dynamic">;
 def: Flag<["-"], "no_deduplicate">;
+def: Flag<["-"], "search_paths_first">;
 def platform_version: Flag<["-"], "platform_version">;
 def: Separate<["-"], "lto_library">;
 def: Separate<["-"], "macosx_version_min">;


        


More information about the llvm-commits mailing list