Skip to content

Commit afa6cc3

Browse files
Merge pull request swiftlang#434 from compnerd/pic
build: build libdispatch as position independent
2 parents fb368f6 + 6efcf87 commit afa6cc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ add_library(dispatch
5454
shims/time.h
5555
shims/tsd.h
5656
shims/yield.h)
57+
58+
set_target_properties(dispatch
59+
PROPERTIES
60+
POSITION_INDEPENDENT_CODE YES)
61+
5762
if(WIN32)
5863
target_sources(dispatch
5964
PRIVATE

0 commit comments

Comments
 (0)