[PATCH] D144482: [clang][docs] Document ThinLTO options for ld64.lld

Jez Ng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 21 06:48:02 PST 2023


int3 created this revision.
int3 added reviewers: lld-macho, tejohnson, lgrey.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
Herald added a project: All.
int3 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The LTO-cache-related flags were added here: D105922: [lld-macho] Add LTO cache support <https://reviews.llvm.org/D105922>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144482

Files:
  clang/docs/ThinLTO.rst


Index: clang/docs/ThinLTO.rst
===================================================================
--- clang/docs/ThinLTO.rst
+++ clang/docs/ThinLTO.rst
@@ -118,7 +118,7 @@
   ``-Wl,-plugin-opt,jobs=N``
 - ld64:
   ``-Wl,-mllvm,-threads=N``
-- lld:
+- ld.lld, ld64.lld:
   ``-Wl,--thinlto-jobs=N``
 - lld-link:
   ``/opt:lldltojobs=N``
@@ -141,9 +141,10 @@
 
 - gold (as of LLVM 4.0):
   ``-Wl,-plugin-opt,cache-dir=/path/to/cache``
-- ld64 (support in clang 3.9 and Xcode 8):
+- ld64 (supported since clang 3.9 and Xcode 8) and Mach-O ld64.lld (as of LLVM
+  15.0):
   ``-Wl,-cache_path_lto,/path/to/cache``
-- ELF lld (as of LLVM 5.0):
+- ELF ld.lld (as of LLVM 5.0):
   ``-Wl,--thinlto-cache-dir=/path/to/cache``
 - COFF lld-link (as of LLVM 6.0):
   ``/lldltocache:/path/to/cache``
@@ -158,8 +159,8 @@
 
 - gold (as of LLVM 6.0):
   ``-Wl,-plugin-opt,cache-policy=POLICY``
-- ELF lld (as of LLVM 5.0):
-  ``-Wl,--thinlto-cache-policy,POLICY``
+- ELF ld.lld (as of LLVM 5.0), Mach-O ld64.lld (as of LLVM 15.0):
+  ``-Wl,--thinlto-cache-policy=POLICY``
 - COFF lld-link (as of LLVM 6.0):
   ``/lldltocachepolicy:POLICY``
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144482.499154.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230221/00fdb856/attachment-0001.bin>


More information about the cfe-commits mailing list