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)
30
30
include (CheckSymbolExists )
31
31
include (GNUInstallDirs )
32
32
include (SwiftSupport )
33
- include (DispatchUtilities )
34
33
35
34
set (SWIFT_LIBDIR "lib" CACHE PATH "Library folder name, defined by swift main buildscript" )
36
35
set (INSTALL_LIBDIR "${SWIFT_LIBDIR} " CACHE PATH "Path where the libraries should be installed" )
@@ -83,18 +82,6 @@ option(ENABLE_DTRACE "enable dtrace support" "")
83
82
84
83
option (ENABLE_TESTING "build libdispatch tests" ON )
85
84
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
-
98
85
option (ENABLE_THREAD_LOCAL_STORAGE "enable usage of thread local storage via _Thread_local" ON )
99
86
set (DISPATCH_USE_THREAD_LOCAL_STORAGE ${ENABLE_THREAD_LOCAL_STORAGE} )
100
87
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -116,20 +116,6 @@ if(ENABLE_SWIFT)
116
116
PROPERTIES
117
117
POSITION_INDEPENDENT_CODE YES )
118
118
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
-
133
119
add_swift_library (swiftDispatch
134
120
CFLAGS
135
121
-fblocks
@@ -138,7 +124,6 @@ if(ENABLE_SWIFT)
138
124
module-maps
139
125
DispatchStubs
140
126
LINK_FLAGS
141
- ${use_ld_flag}
142
127
-lDispatchStubs
143
128
-L $< TARGET_LINKER_FILE_DIR:BlocksRuntime>
144
129
-lBlocksRuntime
@@ -260,7 +245,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
260
245
"-Xlinker -dead_strip"
261
246
"-Xlinker -alias_list -Xlinker ${PROJECT_SOURCE_DIR} /xcodeconfig/libdispatch.aliases" )
262
247
endif ()
263
- dispatch_set_linker (dispatch )
264
248
265
249
install (TARGETS
266
250
dispatch
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ endif ()
47
47
48
48
add_executable (bsdtestharness
49
49
bsdtestharness.c )
50
- dispatch_set_linker (bsdtestharness )
51
50
target_include_directories (bsdtestharness
52
51
PRIVATE
53
52
${CMAKE_CURRENT_BINARY_DIR}
@@ -89,7 +88,6 @@ function(add_unit_test name)
89
88
target_compile_options (${name} PRIVATE -fblocks )
90
89
target_compile_options (${name} PRIVATE -Wall -Wno-deprecated-declarations )
91
90
endif ()
92
- dispatch_set_linker (${name} )
93
91
target_link_libraries (${name}
94
92
PRIVATE
95
93
dispatch
You can’t perform that action at this time.
0 commit comments