Skip to content

Commit

Permalink
docs(development.md): simplifies options for specifying linker
Browse files Browse the repository at this point in the history
  • Loading branch information
bjacobgordon committed Jan 28, 2025
1 parent 6fd551d commit ef8e61b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ sudo apt install clang ccache lld
`# use ccache to cache build results` \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
`# use LLD to link in seconds, rather than minutes` \
`# if using clang <= 13, replace --ld-path=ld.lld with -fuse-ld=lld` \
-DCMAKE_EXE_LINKER_FLAGS_INIT="--ld-path=ld.lld" \
-DCMAKE_MODULE_LINKER_FLAGS_INIT="--ld-path=ld.lld" \
-DCMAKE_SHARED_LINKER_FLAGS_INIT="--ld-path=ld.lld"
-DCMAKE_LINKER_TYPE=lld
```
- This will build `libtorch` / `PyTorch` wheels from source and requires [the enablement mentioned earlier](#optional-enable-quicker-builds).
Expand Down

0 comments on commit ef8e61b

Please sign in to comment.