[PATCH] D81043: lld: ignore the `-search_paths_first` option on MachO

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 16:29:05 PDT 2020


compnerd created this revision.
compnerd added reviewers: smeenai, int3.
compnerd added a project: lld.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81043

Files:
  lld/MachO/Options.td


Index: lld/MachO/Options.td
===================================================================
--- lld/MachO/Options.td
+++ lld/MachO/Options.td
@@ -36,6 +36,7 @@
 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">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81043.268014.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/6fee7cec/attachment.bin>


More information about the llvm-commits mailing list