Skip to content

Commit c2c991c

Browse files
authored
Merge pull request #80249 from compnerd/positional
Runtimes: always build the runtime as PIC
2 parents 17952d4 + 7a15ea0 commit c2c991c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ set(CMAKE_C_VISIBILITY_PRESET "hidden")
3535
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
3636
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
3737

38+
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
39+
3840
set(SwiftCore_CMAKE_MODULES_DIR "${CMAKE_SOURCE_DIR}/cmake/modules")
3941
list(APPEND CMAKE_MODULE_PATH ${SwiftCore_CMAKE_MODULES_DIR})
4042

0 commit comments

Comments
 (0)