Skip to content

Commit b19c9af

Browse files
authored
Fix incorrect implementation-only import for CMake build (#553)
This resolves a warning seen when building the project with CMake, since that style currently still requires `@_implementationOnly import` instead of `private import` or other access levels. ``` ABIEntryPoint.swift:12:16: warning: '_TestingInternals' inconsistently imported as implementation-only ``` ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent b43fae2 commit b19c9af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Testing/ABI/EntryPoints/ABIEntryPoint.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
//
1010

1111
#if canImport(Foundation) && !SWT_NO_ABI_ENTRY_POINT
12+
#if SWT_BUILDING_WITH_CMAKE
13+
@_implementationOnly import _TestingInternals
14+
#else
1215
private import _TestingInternals
16+
#endif
1317

1418
extension ABIv0 {
1519
/// The type of the entry point to the testing library used by tools that want

0 commit comments

Comments
 (0)