File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,10 @@ option(SWIFT_BUILD_PERF_TESTSUITE
127
127
128
128
option (SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE )
129
129
130
+ option (SWIFT_INCLUDE_TEST_BINARIES
131
+ "Create targets for building/running test binaries even if SWIFT_INCLUDE_TESTS is disabled"
132
+ TRUE )
133
+
130
134
option (SWIFT_INCLUDE_DOCS
131
135
"Create targets for building docs."
132
136
TRUE )
Original file line number Diff line number Diff line change 1
1
# Keep in sync with test/CMakeLists.txt: swift-reflection-test is
2
2
# only used when testing dynamic stdlib.
3
- if (SWIFT_BUILD_DYNAMIC_STDLIB AND SWIFT_INCLUDE_TESTS )
3
+ if (SWIFT_BUILD_DYNAMIC_STDLIB AND ( SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES ) )
4
4
add_subdirectory (swift-reflection-test )
5
5
endif ()
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ add_swift_tool_subdirectory(swift-refactor)
30
30
add_swift_tool_subdirectory (libSwiftScan )
31
31
if (SWIFT_BUILD_SYNTAXPARSERLIB )
32
32
add_swift_tool_subdirectory (libSwiftSyntaxParser )
33
- if (SWIFT_INCLUDE_TESTS OR SWIFT_BUILD_SYNTAXPARSERTEST )
33
+ if (SWIFT_INCLUDE_TESTS OR SWIFT_BUILD_SYNTAXPARSERTEST OR SWIFT_INCLUDE_TEST_BINARIES )
34
34
add_swift_tool_subdirectory (swift-syntax-parser-test )
35
35
endif ()
36
36
endif ()
37
37
38
- if (SWIFT_INCLUDE_TESTS )
38
+ if (SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES )
39
39
add_swift_tool_subdirectory (swift-ide-test )
40
40
add_swift_tool_subdirectory (swift-remoteast-test )
41
41
add_swift_tool_subdirectory (lldb-moduleimport-test )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ add_swift_lib_subdirectory(sourcekitd)
8
8
if (LibEdit_FOUND AND LibEdit_HAS_UNICODE )
9
9
add_swift_tool_subdirectory (sourcekitd-repl )
10
10
endif ()
11
- if (SWIFT_INCLUDE_TESTS )
11
+ if (SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES )
12
12
add_swift_tool_subdirectory (sourcekitd-test )
13
13
add_swift_tool_subdirectory (complete-test )
14
14
endif ()
You can’t perform that action at this time.
0 commit comments