We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e67bd4 commit 05a60baCopy full SHA for 05a60ba
src/CMakeLists.txt
@@ -116,9 +116,17 @@ if(ENABLE_SWIFT)
116
POSITION_INDEPENDENT_CODE YES)
117
118
if(USE_LLD_LINKER)
119
- set(use_ld_flag -use-ld=lld)
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
120
+ set(use_ld_flag -use-ld=lld.exe)
121
+ else()
122
+ set(use_ld_flag -use-ld=lld)
123
+ endif()
124
elseif(USE_GOLD_LINKER)
- set(use_ld_flag -use-ld=gold)
125
126
+ set(use_ld_flag -use-ld=gold.exe)
127
128
+ set(use_ld_flag -use-ld=gold)
129
130
endif()
131
132
add_swift_library(swiftDispatch
0 commit comments