diff --git a/Sources/Foundation/CMakeLists.txt b/Sources/Foundation/CMakeLists.txt index 398fbfc5e9..fc093ce0c8 100644 --- a/Sources/Foundation/CMakeLists.txt +++ b/Sources/Foundation/CMakeLists.txt @@ -152,6 +152,7 @@ target_compile_definitions(Foundation PRIVATE DEPLOYMENT_RUNTIME_SWIFT) target_compile_options(Foundation PUBLIC $<$:-enable-testing> + "SHELL:-Xfrontend -disable-autolink-framework -Xfrontend CoreFoundation" "SHELL:-Xcc -F${CMAKE_BINARY_DIR}") target_link_libraries(Foundation PRIVATE diff --git a/Sources/FoundationNetworking/CMakeLists.txt b/Sources/FoundationNetworking/CMakeLists.txt index 2dec76980a..1a8f516e98 100644 --- a/Sources/FoundationNetworking/CMakeLists.txt +++ b/Sources/FoundationNetworking/CMakeLists.txt @@ -59,6 +59,7 @@ target_compile_options(FoundationNetworking PUBLIC # forced load symbol when validating the TBD -Xfrontend -validate-tbd-against-ir=none $<$:-enable-testing> + "SHELL:-Xfrontend -disable-autolink-framework -Xfrontend CFURLSessionInterface" "SHELL:-Xcc -F${CMAKE_BINARY_DIR}") target_link_libraries(FoundationNetworking PRIVATE diff --git a/Sources/FoundationXML/CMakeLists.txt b/Sources/FoundationXML/CMakeLists.txt index 913c8f42b3..944ea25875 100644 --- a/Sources/FoundationXML/CMakeLists.txt +++ b/Sources/FoundationXML/CMakeLists.txt @@ -10,6 +10,7 @@ target_compile_definitions(FoundationXML PRIVATE DEPLOYMENT_RUNTIME_SWIFT) target_compile_options(FoundationXML PUBLIC $<$:-enable-testing> + "SHELL:-Xfrontend -disable-autolink-framework -Xfrontend CFXMLInterface" "SHELL:-Xcc -F${CMAKE_BINARY_DIR}") target_link_libraries(FoundationXML PRIVATE