Skip to content

Commit 141b032

Browse files
authored
Enable --build-sil-debugging-stdlib for all of swift/stdlib/public (#34197)
Previously it was enable only for swift/stdlib/public/core
1 parent 2d09bc3 commit 141b032

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
@@ -284,10 +284,6 @@ option(SWIFT_CHECK_ESSENTIAL_STDLIB
284284
"Check core standard library layering by linking its essential subset"
285285
FALSE)
286286

287-
if(SWIFT_STDLIB_SIL_DEBUGGING)
288-
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-gsil")
289-
endif()
290-
291287
if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
292288
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
293289
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")

0 commit comments

Comments
 (0)