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 9999endif ()
100100option (USE_GOLD_LINKER "use the gold linker" ${USE_GOLD_LINKER_DEFAULT} )
101101
102+ option (USE_LLD_LINKER "use the lld linker" OFF )
103+
102104option (ENABLE_THREAD_LOCAL_STORAGE "enable usage of thread local storage via __thread" ON )
103105set (DISPATCH_USE_THREAD_LOCAL_STORAGE ${ENABLE_THREAD_LOCAL_STORAGE} )
104106
Original file line number Diff line number Diff line change @@ -211,6 +211,12 @@ if(USE_GOLD_LINKER)
211211 PROPERTY LINK_FLAGS
212212 -fuse-ld=gold)
213213endif ()
214+ if (USE_LLD_LINKER)
215+ set_property (TARGET dispatch
216+ APPEND_STRING
217+ PROPERTY LINK_FLAGS
218+ -fuse-ld=lld)
219+ endif ()
214220
215221# Temporary staging; the various swift projects that depend on libdispatch
216222# all expect libdispatch.so to be in src/.libs/libdispatch.so
You can’t perform that action at this time.
0 commit comments