Skip to content

Commit f330374

Browse files
committed
Move libSwiftScan from 'tools' to 'lib/Tooling'
'tools' should be reserved for executable tools.
1 parent d8119ef commit f330374

File tree

10 files changed

+12
-5
lines changed

10 files changed

+12
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,10 @@ if(SWIFT_ENABLE_DISPATCH)
14301430
endif()
14311431

14321432
# Add all of the subdirectories, where we actually do work.
1433+
add_subdirectory(include)
1434+
if(SWIFT_INCLUDE_TOOLS)
1435+
add_subdirectory(lib)
1436+
endif()
14331437

14341438
###############
14351439
# PLEASE READ #
@@ -1482,11 +1486,7 @@ if(SWIFT_INCLUDE_APINOTES)
14821486
add_subdirectory(apinotes)
14831487
endif()
14841488

1485-
add_subdirectory(include)
1486-
14871489
if(SWIFT_INCLUDE_TOOLS)
1488-
add_subdirectory(lib)
1489-
14901490
add_subdirectory(SwiftCompilerSources)
14911491

14921492
# Always include this after including stdlib/!

lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ add_subdirectory(StaticMirror)
7575
add_subdirectory(SymbolGraphGen)
7676
add_subdirectory(SwiftSyntax)
7777
add_subdirectory(Threading)
78+
add_subdirectory(Tooling)
7879

7980
if(SWIFT_BUILD_EXTERNAL_GENERIC_METADATA_BUILDER)
8081
add_subdirectory(ExternalGenericMetadataBuilder)

lib/Tooling/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_swift_tool_subdirectory(libSwiftScan)

stdlib/public/core/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,18 @@ if(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING")
398398
BOOTSTRAPPING 1)
399399
endif()
400400

401+
set(tooling_stdlib_deps)
402+
if(TARGET libSwiftScan)
403+
list(APPEND tooling_stdlib_deps libSwiftScan)
404+
endif()
405+
401406
add_swift_target_library(swiftCore
402407
${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
403408
${swiftCore_common_options}
404409
${compile_flags_for_final_build}
405410
FILE_DEPENDS
406411
${swiftCore_common_dependencies}
412+
DEPENDS ${tooling_stdlib_deps}
407413
INSTALL_IN_COMPONENT
408414
stdlib
409415
MACCATALYST_BUILD_FLAVOR

tools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ add_swift_tool_subdirectory(swift-def-to-strings-converter)
2424
add_swift_tool_subdirectory(swift-serialize-diagnostics)
2525
add_swift_tool_subdirectory(swift-ast-script)
2626
add_swift_tool_subdirectory(swift-refactor)
27-
add_swift_tool_subdirectory(libSwiftScan)
2827
add_swift_tool_subdirectory(libStaticMirror)
2928
add_swift_tool_subdirectory(libMockPlugin)
3029
add_swift_tool_subdirectory(swift-plugin-server)

0 commit comments

Comments
 (0)