Skip to content

Commit 7af4a70

Browse files
authored
Merge pull request swiftlang#26305 from Rostepher/toolchain-only-layouts
[Build System: CMake] New stdlib/toolchain directory for toolchain-only content.
2 parents e88f0c2 + 6d0450a commit 7af4a70

File tree

15 files changed

+4
-3
lines changed

15 files changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ endif()
10781078
if(SWIFT_BUILD_STDLIB)
10791079
add_subdirectory(stdlib)
10801080
else()
1081-
add_subdirectory(stdlib/public/legacy_layouts)
1081+
add_subdirectory(stdlib/toolchain)
10821082

10831083
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
10841084
# ensure we build that when building tools.

stdlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,5 @@ swift_create_stdlib_targets("swift-test-stdlib" "" FALSE)
136136

137137
add_subdirectory(public)
138138
add_subdirectory(private)
139+
add_subdirectory(toolchain)
139140
add_subdirectory(tools)

stdlib/public/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ if(CXX_SUPPORTS_DEFAULT_HIDDEN_VISIBILITY)
5252
list(APPEND SWIFT_RUNTIME_CORE_CXX_FLAGS "-fvisibility=hidden")
5353
endif()
5454

55-
add_subdirectory(legacy_layouts)
5655
add_subdirectory(SwiftShims)
5756

5857
if(SWIFT_BUILD_STDLIB)

stdlib/toolchain/CMakeLists.txt

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

stdlib/public/legacy_layouts/CMakeLists.txt renamed to stdlib/toolchain/legacy_layouts/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ foreach(sdk ${SWIFT_SDKS})
44
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
55
set(platform "${SWIFT_SDK_${sdk}_LIB_SUBDIR}")
66

7-
set(input "${SWIFT_SOURCE_DIR}/stdlib/public/legacy_layouts/${platform}/layouts-${arch}.yaml")
7+
set(input "${SWIFT_SOURCE_DIR}/stdlib/toolchain/legacy_layouts/${platform}/layouts-${arch}.yaml")
88
set(output "${SWIFTLIB_DIR}/${platform}/layouts-${arch}.yaml")
99

1010
set(copy_target "copy-legacy-layouts-${platform}-${arch}")

0 commit comments

Comments
 (0)