mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Pre-specializations were only used by Onone builds, but were kept inside the standard library dylyb anyways. This commit moves all the pre-specializations into a dedicated Swift module and a dynamic library, which are only used by Onone builds. This reduces the code size of libswiftCore.dylib by 4%-5%.
7 lines
271 B
CMake
7 lines
271 B
CMake
add_swift_library(swiftSwiftOnoneSupport SHARED IS_STDLIB
|
|
# This file should be listed the first. Module name is inferred from the
|
|
# filename.
|
|
SwiftOnoneSupport.swift
|
|
SWIFT_COMPILE_FLAGS ${STDLIB_SIL_SERIALIZE_ALL} "-parse-stdlib"
|
|
INSTALL_IN_COMPONENT stdlib)
|