Skip to content

Commit ad858eb

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/CrossCompilationDestinationsTool/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ target_link_libraries(CrossCompilationDestinationsTool PUBLIC
2727
set_target_properties(CrossCompilationDestinationsTool PROPERTIES
2828
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
2929

30+
target_compile_options(CrossCompilationDestinationsTool PRIVATE
31+
-Xfrontend -validate-tbd-against-ir=none)
32+
3033
if(USE_CMAKE_INSTALL)
3134
install(TARGETS CrossCompilationDestinationsTool
3235
ARCHIVE DESTINATION lib

0 commit comments

Comments
 (0)