CMake: StringProcessing: Set C visibility hidden

Don't expose the C symbols from StringProcessing.
This commit is contained in:
Evan Wilde
2025-11-12 16:58:41 -08:00
parent 2ce6778550
commit 22d2511477

View File

@@ -24,6 +24,9 @@ if(NOT PROJECT_IS_TOP_LEVEL)
message(FATAL_ERROR "Swift StringProcessing must build as a standalone project")
endif()
set(CMAKE_C_VISIBILITY_PRESET "hidden")
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
set(${PROJECT_NAME}_SWIFTC_SOURCE_DIR