We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8978efb + f9ef9c4 commit bcbd026Copy full SHA for bcbd026
CMakeLists.txt
@@ -51,6 +51,17 @@ set(CMAKE_CXX_EXTENSIONS NO)
51
include(SwiftUtils)
52
include(CheckSymbolExists)
53
include(CMakeDependentOption)
54
+include(CheckLanguage)
55
+
56
+# Enable Swift for the host compiler build if we have the language. It is
57
+# optional until we have a bootstrap story.
58
+check_language(Swift)
59
+if(CMAKE_Swift_COMPILER)
60
+ enable_language(Swift)
61
+else()
62
+ message(STATUS "WARNING! Did not find a host compiler swift?! Can not build
63
+ any compiler host sources written in Swift")
64
+endif()
65
66
#
67
# User-configurable options that control the inclusion and default build
0 commit comments