File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 99
99
endif ()
100
100
option (USE_GOLD_LINKER "use the gold linker" ${USE_GOLD_LINKER_DEFAULT} )
101
101
102
+ option (USE_LLD_LINKER "use the lld linker" OFF )
103
+
102
104
option (ENABLE_THREAD_LOCAL_STORAGE "enable usage of thread local storage via __thread" ON )
103
105
set (DISPATCH_USE_THREAD_LOCAL_STORAGE ${ENABLE_THREAD_LOCAL_STORAGE} )
104
106
Original file line number Diff line number Diff line change @@ -211,6 +211,12 @@ if(USE_GOLD_LINKER)
211
211
PROPERTY LINK_FLAGS
212
212
-fuse-ld=gold )
213
213
endif ()
214
+ if (USE_LLD_LINKER )
215
+ set_property (TARGET dispatch
216
+ APPEND_STRING
217
+ PROPERTY LINK_FLAGS
218
+ -fuse-ld=lld )
219
+ endif ()
214
220
215
221
# Temporary staging; the various swift projects that depend on libdispatch
216
222
# all expect libdispatch.so to be in src/.libs/libdispatch.so
You can’t perform that action at this time.
0 commit comments