Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 6532e71

Browse files
committed
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
* 'main' of github.com:apple/swift: Enable --build-sil-debugging-stdlib for all of swift/stdlib/public (swiftlang#34197)
2 parents b5403a9 + 141b032 commit 6532e71

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ if(SWIFT_RUNTIME_USE_SANITIZERS)
1515
endif()
1616
endif()
1717

18-
list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree")
18+
list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree")
19+
20+
if(SWIFT_STDLIB_SIL_DEBUGGING)
21+
list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-gsil")
22+
endif()
1923

2024
# Build the runtime with -Wall to catch, e.g., uninitialized variables
2125
# warnings.

stdlib/public/core/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,6 @@ option(SWIFT_CHECK_ESSENTIAL_STDLIB
314314
"Check core standard library layering by linking its essential subset"
315315
FALSE)
316316

317-
if(SWIFT_STDLIB_SIL_DEBUGGING)
318-
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-gsil")
319-
endif()
320-
321317
if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
322318
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
323319
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")

0 commit comments

Comments
 (0)