mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes the Swift LSAN CI job Linux (https://ci.swift.org/job/oss-swift-RA-lsan-linux-ubuntu-18_04/) that started failing after https://github.com/apple/swift/pull/65398. rdar://108674065
22 lines
680 B
CMake
22 lines
680 B
CMake
#
|
|
# C++ Standard Library Overlay.
|
|
#
|
|
add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_ONLY
|
|
std.swift
|
|
String.swift
|
|
|
|
SWIFT_MODULE_DEPENDS Cxx
|
|
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS} ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
-Xfrontend -enable-experimental-cxx-interop
|
|
-Xfrontend -module-interface-preserve-types-as-written
|
|
|
|
SWIFT_COMPILE_FLAGS_LINUX
|
|
${SWIFT_SDK_LINUX_CXX_OVERLAY_SWIFT_COMPILE_FLAGS}
|
|
|
|
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
|
|
TARGET_SDKS ALL_APPLE_PLATFORMS LINUX
|
|
INSTALL_IN_COMPONENT compiler
|
|
INSTALL_WITH_SHARED
|
|
DEPENDS libstdcxx-modulemap libcxxshim_modulemap)
|