Skip to content

Commit 95e0a6b

Browse files
committed
[cxx-interop] Enable C++ stdlib overlay on Linux
1 parent c70d8fd commit 95e0a6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Cxx/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,6 @@ add_swift_target_library(swiftstd ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SDK_OVE
140140
-Xfrontend -enable-experimental-cxx-interop
141141
-Xfrontend -module-interface-preserve-types-as-written
142142

143-
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}" -lc++
144-
TARGET_SDKS ALL_APPLE_PLATFORMS # TODO: support other platforms as well
143+
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
144+
TARGET_SDKS ALL_APPLE_PLATFORMS LINUX # TODO: support other platforms as well
145145
INSTALL_IN_COMPONENT sdk-overlay)

test/Interop/Cxx/stdlib/overlay/string.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-cxx-interop)
22
//
33
// REQUIRES: executable_test
4-
// REQUIRES: OS=macosx
4+
// REQUIRES: OS=macosx || OS=linux-gnu
55

66
import StdlibUnittest
77
import std

0 commit comments

Comments
 (0)