File tree Expand file tree Collapse file tree 4 files changed +0
-50
lines changed Expand file tree Collapse file tree 4 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ include(CheckLibraryExists)
3030include (CheckSymbolExists)
3131include (GNUInstallDirs)
3232include (SwiftSupport)
33- include (DispatchUtilities)
3433
3534set (SWIFT_LIBDIR "lib" CACHE PATH "Library folder name, defined by swift main buildscript" )
3635set (INSTALL_LIBDIR "${SWIFT_LIBDIR} " CACHE PATH "Path where the libraries should be installed" )
@@ -83,18 +82,6 @@ option(ENABLE_DTRACE "enable dtrace support" "")
8382
8483option (ENABLE_TESTING "build libdispatch tests" ON )
8584
86- option (USE_LLD_LINKER "use the lld linker" FALSE )
87-
88- if (NOT USE_LLD_LINKER AND
89- (CMAKE_SYSTEM_NAME STREQUAL Linux OR
90- CMAKE_SYSTEM_NAME STREQUAL FreeBSD OR
91- CMAKE_SYSTEM_NAME STREQUAL Android))
92- set (USE_GOLD_LINKER_DEFAULT TRUE )
93- else ()
94- set (USE_GOLD_LINKER_DEFAULT FALSE )
95- endif ()
96- option (USE_GOLD_LINKER "use the gold linker" ${USE_GOLD_LINKER_DEFAULT} )
97-
9885option (ENABLE_THREAD_LOCAL_STORAGE "enable usage of thread local storage via _Thread_local" ON )
9986set (DISPATCH_USE_THREAD_LOCAL_STORAGE ${ENABLE_THREAD_LOCAL_STORAGE} )
10087
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -116,20 +116,6 @@ if(ENABLE_SWIFT)
116116 PROPERTIES
117117 POSITION_INDEPENDENT_CODE YES )
118118
119- if (USE_LLD_LINKER)
120- if (CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
121- set (use_ld_flag -use-ld=lld.exe)
122- else ()
123- set (use_ld_flag -use-ld=lld)
124- endif ()
125- elseif (USE_GOLD_LINKER)
126- if (CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
127- set (use_ld_flag -use-ld=gold.exe)
128- else ()
129- set (use_ld_flag -use-ld=gold)
130- endif ()
131- endif ()
132-
133119 add_swift_library(swiftDispatch
134120 CFLAGS
135121 -fblocks
@@ -138,7 +124,6 @@ if(ENABLE_SWIFT)
138124 module-maps
139125 DispatchStubs
140126 LINK_FLAGS
141- ${use_ld_flag}
142127 -lDispatchStubs
143128 -L $<TARGET_LINKER_FILE_DIR:BlocksRuntime>
144129 -lBlocksRuntime
@@ -260,7 +245,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
260245 "-Xlinker -dead_strip"
261246 "-Xlinker -alias_list -Xlinker ${PROJECT_SOURCE_DIR} /xcodeconfig/libdispatch.aliases" )
262247endif ()
263- dispatch_set_linker(dispatch)
264248
265249install (TARGETS
266250 dispatch
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ endif ()
4747
4848add_executable (bsdtestharness
4949 bsdtestharness.c)
50- dispatch_set_linker(bsdtestharness)
5150target_include_directories (bsdtestharness
5251 PRIVATE
5352 ${CMAKE_CURRENT_BINARY_DIR}
@@ -89,7 +88,6 @@ function(add_unit_test name)
8988 target_compile_options (${name} PRIVATE -fblocks)
9089 target_compile_options (${name} PRIVATE -Wall -Wno-deprecated-declarations)
9190 endif ()
92- dispatch_set_linker(${name} )
9391 target_link_libraries (${name}
9492 PRIVATE
9593 dispatch
You can’t perform that action at this time.
0 commit comments