File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,18 @@ option(BUILD_SHARED_LIBS "build shared libraries" ON)
91
91
92
92
option (ENABLE_TESTING "build libdispatch tests" ON )
93
93
94
+ option (USE_LLD_LINKER "use the lld linker" OFF )
95
+
94
96
if (CMAKE_SYSTEM_NAME STREQUAL Linux OR
95
97
CMAKE_SYSTEM_NAME STREQUAL FreeBSD OR
96
- CMAKE_SYSTEM_NAME STREQUAL Android )
98
+ CMAKE_SYSTEM_NAME STREQUAL Android AND
99
+ NOT USE_LLD_LINKER )
97
100
set (USE_GOLD_LINKER_DEFAULT ON )
98
101
else ()
99
102
set (USE_GOLD_LINKER_DEFAULT OFF )
100
103
endif ()
101
104
option (USE_GOLD_LINKER "use the gold linker" ${USE_GOLD_LINKER_DEFAULT} )
102
105
103
- option (USE_LLD_LINKER "use the lld linker" OFF )
104
-
105
106
option (ENABLE_THREAD_LOCAL_STORAGE "enable usage of thread local storage via _Thread_local" ON )
106
107
set (DISPATCH_USE_THREAD_LOCAL_STORAGE ${ENABLE_THREAD_LOCAL_STORAGE} )
107
108
You can’t perform that action at this time.
0 commit comments