Skip to content

Commit 721d670

Browse files
authored
Merge pull request #6407 from compnerd/windows-pic
2 parents 50471e1 + 92a09a0 commit 721d670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function(_add_variant_c_compile_flags)
230230
list(APPEND result "-D_MDd")
231231
list(APPEND result -Xclang;--dependent-lib=msvcrtd)
232232
endif()
233+
list(APPEND result -fno-pic)
233234
endif()
234235

235236
if(CFLAGS_ENABLE_ASSERTIONS)

0 commit comments

Comments
 (0)