mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
CMake: option to disable swift in swift
Adding `SWIFT_ENABLE_SWIFT_IN_SWIFT` option to enable or disable the parts of Swift that require a Swift compiler to build. This is meant for bootstrapping compilers on new platforms and is not guaranteed to result in a compiler that will pass the test suite. This option is on by default so that folks won't forget. If the option is off, the resulting compiler does not include the Swift optimizer sources in SwiftCompilerSources nor does the resulting compiler have swift macro support.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Keep in sync with test/CMakeLists.txt: swift-reflection-test is
|
||||
# only used when testing dynamic stdlib.
|
||||
if(SWIFT_BUILD_DYNAMIC_STDLIB AND (SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES))
|
||||
if(SWIFT_BUILD_REMOTE_MIRROR AND
|
||||
SWIFT_BUILD_DYNAMIC_STDLIB AND
|
||||
(SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES))
|
||||
add_subdirectory(swift-reflection-test)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user