Skip to content

Commit 7190726

Browse files
authored
[docs] Update cmake options for specifying linker (#4136)
1 parent 340bcac commit 7190726

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/development.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ cmake -GNinja -Bbuild \
123123
`# use ccache to cache build results` \
124124
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
125125
`# use LLD to link in seconds, rather than minutes` \
126-
`# if using clang <= 13, replace --ld-path=ld.lld with -fuse-ld=lld` \
127-
-DCMAKE_EXE_LINKER_FLAGS_INIT="--ld-path=ld.lld" \
128-
-DCMAKE_MODULE_LINKER_FLAGS_INIT="--ld-path=ld.lld" \
129-
-DCMAKE_SHARED_LINKER_FLAGS_INIT="--ld-path=ld.lld"
126+
-DCMAKE_LINKER_TYPE=lld
130127
```
131128

132129
- This requires [the enablement mentioned earlier](#optional-enable-quicker-builds).

0 commit comments

Comments
 (0)