Skip to content

Commit 8721ece

Browse files
committed
Turn off library evolution
1 parent f246427 commit 8721ece

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ endif()
104104
set(_Foundation_swift_build_flags)
105105
list(APPEND _Foundation_swift_build_flags
106106
"-DDEPLOYMENT_RUNTIME_SWIFT"
107-
"-DSWIFT_CORELIBS_FOUNDATION_HAS_THREADS"
108-
"-enable-library-evolution")
107+
"-DSWIFT_CORELIBS_FOUNDATION_HAS_THREADS")
109108

110109
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
111110
list(APPEND _Foundation_common_build_flags

Sources/CoreFoundation/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ target_compile_options(CoreFoundation PRIVATE
3333

3434
target_precompile_headers(CoreFoundation PRIVATE internalInclude/CoreFoundation_Prefix.h)
3535

36-
target_link_libraries(CoreFoundation PRIVATE
37-
_FoundationICUCommon
38-
_FoundationICUI18N
39-
_FoundationICUIO
40-
dispatch)
36+
target_link_libraries(CoreFoundation
37+
PUBLIC
38+
_FoundationICUCommon
39+
_FoundationICUI18N
40+
_FoundationICUIO
41+
PRIVATE
42+
dispatch)
4143

4244
file(COPY
4345
"include/module.map"

0 commit comments

Comments
 (0)