File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -1763,3 +1763,11 @@ function(add_swift_executable name)
1763
1763
${SWIFTEXE_DONT_STRIP_NON_MAIN_SYMBOLS_FLAG}
1764
1764
${SWIFTEXE_DISABLE_ASLR_FLAG} )
1765
1765
endfunction ()
1766
+
1767
+ macro (add_swift_tool_subdirectory name )
1768
+ add_llvm_subdirectory (SWIFT TOOL ${name} )
1769
+ endmacro ()
1770
+
1771
+ macro (add_swift_lib_subdirectory name )
1772
+ add_llvm_subdirectory (SWIFT LIB ${name} )
1773
+ endmacro ()
Original file line number Diff line number Diff line change 1
- add_subdirectory (driver )
2
- add_subdirectory (sil-opt )
3
- add_subdirectory (swift-ide-test )
4
- add_subdirectory (swift-remoteast-test )
5
- add_subdirectory (swift-demangle )
6
- add_subdirectory (lldb-moduleimport-test )
7
- add_subdirectory (sil-extract )
8
- add_subdirectory (swift-llvm-opt )
1
+ add_swift_tool_subdirectory (driver )
2
+ add_swift_tool_subdirectory (sil-opt )
3
+ add_swift_tool_subdirectory (swift-ide-test )
4
+ add_swift_tool_subdirectory (swift-remoteast-test )
5
+ add_swift_tool_subdirectory (swift-demangle )
6
+ add_swift_tool_subdirectory (lldb-moduleimport-test )
7
+ add_swift_tool_subdirectory (sil-extract )
8
+ add_swift_tool_subdirectory (swift-llvm-opt )
9
9
10
10
if (SWIFT_BUILD_SOURCEKIT )
11
- add_subdirectory (SourceKit )
11
+ add_swift_tool_subdirectory (SourceKit )
12
12
endif ()
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ include_directories(
4
4
${SOURCEKITD_SOURCE_DIR} /include
5
5
)
6
6
7
- add_subdirectory (sourcekitd )
8
- add_subdirectory (sourcekitd-test )
9
- add_subdirectory (sourcekitd-repl )
10
- add_subdirectory (complete-test )
7
+ add_swift_lib_subdirectory (sourcekitd )
8
+ add_swift_tool_subdirectory (sourcekitd-test )
9
+ add_swift_tool_subdirectory (sourcekitd-repl )
10
+ add_swift_tool_subdirectory (complete-test )
You can’t perform that action at this time.
0 commit comments