Skip to content

Commit 22d2511

Browse files
committed
CMake: StringProcessing: Set C visibility hidden
Don't expose the C symbols from StringProcessing.
1 parent 2ce6778 commit 22d2511

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Runtimes/Supplemental/StringProcessing/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ if(NOT PROJECT_IS_TOP_LEVEL)
2424
message(FATAL_ERROR "Swift StringProcessing must build as a standalone project")
2525
endif()
2626

27+
set(CMAKE_C_VISIBILITY_PRESET "hidden")
28+
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
29+
2730
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
2831

2932
set(${PROJECT_NAME}_SWIFTC_SOURCE_DIR

0 commit comments

Comments
 (0)