Skip to content

Commit 294f9b5

Browse files
committed
[cmake] Disable swift-cmake tests on non-Darwin platforms.
The reason why I am doing this is that we do not yet have on all of the non-Darwin bots swift host toolchain files. So we can't test this code path on those platforms and thus can not guarantee correctness. The result is that on those other platforms if someone /does/ have a host toolchain with a swift binary in it, failures may result breaking other people's builds.
1 parent b64a3ac commit 294f9b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
# Only test this if we found a Swift compiler.
3-
if (CMAKE_Swift_COMPILER)
2+
# Only test this if we found a Swift compiler. Currently only enable this test
3+
# if we build on Darwin since we do not have a host toolchain available when
4+
# compiling on the bots for Linux meaning this path would not be tested.
5+
if (CMAKE_Swift_COMPILER AND APPLE)
46
add_subdirectory(swift-cmake)
57
endif()

0 commit comments

Comments
 (0)