diff --git a/Sources/_TestingInternals/CMakeLists.txt b/Sources/_TestingInternals/CMakeLists.txt index e33faeecf..923450b51 100644 --- a/Sources/_TestingInternals/CMakeLists.txt +++ b/Sources/_TestingInternals/CMakeLists.txt @@ -22,7 +22,7 @@ if(NOT BUILD_SHARED_LIBS) # When building a static library, install the internal library archive # alongside the main library. In shared library builds, the internal library # is linked into the main library and does not need to be installed separately. - get_swift_install_lib_dir(STATIC_LIBRARY lib_destination_dir) + get_swift_testing_install_lib_dir(STATIC_LIBRARY lib_destination_dir) install(TARGETS _TestingInternals ARCHIVE DESTINATION ${lib_destination_dir}) endif() diff --git a/Sources/_TestingInternals/include/Includes.h b/Sources/_TestingInternals/include/Includes.h index 68c68dcce..b7009456b 100644 --- a/Sources/_TestingInternals/include/Includes.h +++ b/Sources/_TestingInternals/include/Includes.h @@ -58,7 +58,7 @@ #include #endif -#if __has_include() +#if __has_include() && !defined(__wasi__) #include #endif