Skip to content

Commit 98f563d

Browse files
author
Harlan Haskins
committed
Add new flag to XCTest overlay
1 parent 433a211 commit 98f563d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

stdlib/public/Darwin/XCTest/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ add_swift_target_library(swiftXCTest ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS
77
XCTestCaseAdditions.mm
88
XCTest.swift
99

10-
SWIFT_COMPILE_FLAGS "${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}"
10+
SWIFT_COMPILE_FLAGS
11+
"${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}"
12+
13+
# XCTest has a type called XCTest, which exposes an issue in module
14+
# interfaces -- because types are fully-qualified, the compiler currently
15+
# doesn't disambiguate between XCTest-the-module and XCTest-the-class.
16+
# rdar://48445154
17+
-Xfrontend -module-interface-preserve-types-as-written
1118
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
1219
TARGET_SDKS OSX IOS IOS_SIMULATOR TVOS TVOS_SIMULATOR
1320
SWIFT_MODULE_DEPENDS ObjectiveC Foundation

0 commit comments

Comments
 (0)