[PATCH] D132893: Add docs for Mach-O lld

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 10:51:41 PDT 2022


oontvoo added inline comments.


================
Comment at: lld/docs/MachO/index.rst:24-25
+decompressing it, and locating the binary at ``bin/ld64.lld``. Note
+that if ``ld64.lld`` is moved out of ``bin``, it must still be accompanied
+by its sibling file ``lld``.
+
----------------
ld64.lld is mostly just a soft link to lld, no? 


================
Comment at: lld/docs/MachO/index.rst:44-45
+  $ cd build
+  $ cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=lld -DCMAKE_INSTALL_PREFIX=/usr/local ../llvm-project/llvm
+  $ make install
+
----------------
[optional] but I think `ninja` should be used (for faster build )
 Eg.,

```
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='lld'   -DCMAKE_INSTALL_PREFIX=/usr/local ../llvm-project/llvm
ninja check-lld-macho && ninja install
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132893/new/

https://reviews.llvm.org/D132893



More information about the llvm-commits mailing list