mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Instead of directly referencing a long-dead constructor from the standard library, put a purpose-built function in StdlibUnittest to feed a Swift object reference to the test C code. rdar://problem/18498737 Swift SVN r24816
30 lines
817 B
CMake
30 lines
817 B
CMake
add_swift_library(swiftStdlibUnittest SHARED IS_STDLIB
|
|
# This file should be listed the first. Module name is inferred from the
|
|
# filename.
|
|
StdlibUnittest.swift.gyb
|
|
|
|
DarwinExtras.swift
|
|
GetOSVersion.mm
|
|
InterceptTraps.cpp
|
|
OpaqueIdentityFunctions.cpp
|
|
OpaqueIdentityFunctions.swift
|
|
PthreadBarriers.swift
|
|
PthreadWrappers.swift
|
|
RaceTest.swift
|
|
Statistics.swift
|
|
StdlibCoreExtras.swift
|
|
SwiftBlockToCFunctionThunks.cpp
|
|
TestHelpers.swift
|
|
LifetimeTracked.swift
|
|
|
|
# Can not serialize StdlibUnittest because of:
|
|
# <rdar://problem/18917405> Compiling StdlibUnittest with -sil-serialize-all
|
|
# crashes in SIL serializer
|
|
#
|
|
# SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
|
|
|
|
SWIFT_MODULE_DEPENDS Darwin Foundation
|
|
FRAMEWORK_DEPENDS Foundation
|
|
INSTALL_IN_COMPONENT stdlib-experimental)
|
|
|