Skip to content

Commit be9d93f

Browse files
authored
Enable -reflection-metadata-for-debugger-only for the freestanding stdlib (#41168)
1 parent 56963d4 commit be9d93f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function(_compile_swift_files
480480
endif()
481481

482482
if(NOT SWIFT_ENABLE_REFLECTION)
483-
list(APPEND swift_flags "-Xfrontend" "-disable-reflection-metadata")
483+
list(APPEND swift_flags "-Xfrontend" "-reflection-metadata-for-debugger-only")
484484
else()
485485
list(APPEND swift_flags "-D" "SWIFT_ENABLE_REFLECTION")
486486
endif()

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,9 @@ if run_vendor == 'apple':
10051005
if not config.swift_freestanding_is_darwin:
10061006
swift_execution_tests_extra_flags += ' -Xfrontend -disable-preallocated-instantiation-caches'
10071007

1008+
if not config.swift_freestanding_is_darwin:
1009+
swift_execution_tests_extra_flags += ' -Xfrontend -reflection-metadata-for-debugger-only'
1010+
10081011
# Build a resource dir for freestanding tests.
10091012
new_resource_dir = os.path.join(config.test_exec_root, "resource_dir")
10101013
if not os.path.exists(new_resource_dir): os.mkdir(new_resource_dir)

0 commit comments

Comments
 (0)