Skip to content

Commit c53c4d1

Browse files
authored
Don't set SWT_NO_INTEROP on WASI. (#1512)
The toolchain on the release/6.3 branch has regressed because we are inadvertently setting `SWT_NO_INTEROP` on WASI in the CMake build but not in the SwiftPM manifest. This change was unintentional. ### 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 671c833 commit c53c4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/shared/CompilerSettings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if(SWT_TESTING_LIBRARY_VERSION)
5353
add_compile_definitions("$<$<COMPILE_LANGUAGE:CXX>:SWT_TESTING_LIBRARY_VERSION=\"${SWT_TESTING_LIBRARY_VERSION}\">")
5454
endif()
5555

56-
if(NOT BUILD_SHARED_LIBS)
56+
if((NOT BUILD_SHARED_LIBS) && (NOT CMAKE_SYSTEM_NAME STREQUAL WASI))
5757
# When building a static library, Interop is not supported at this time
5858
add_compile_definitions("SWT_NO_INTEROP")
5959
endif()

0 commit comments

Comments
 (0)