Skip to content

Commit 3544153

Browse files
authored
Destinations CMake: pass -Xfrontend -validate-tbd-against-ir=none
This fixes an issue with the Windows build highlighted in #6361 (comment)
1 parent 8c6d925 commit 3544153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CrossCompilationDestinationsTool/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ target_link_libraries(CrossCompilationDestinationsTool PUBLIC
2626
# NOTE(compnerd) workaround for CMake not setting up include flags yet
2727
set_target_properties(CrossCompilationDestinationsTool PROPERTIES
2828
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
29+
30+
31+
target_compile_options(CrossCompilationDestinationsTool PRIVATE
32+
-Xfrontend -validate-tbd-against-ir=none)
2933

3034
if(USE_CMAKE_INSTALL)
3135
install(TARGETS CrossCompilationDestinationsTool

0 commit comments

Comments
 (0)