Skip to content

Commit e12130c

Browse files
committed
Add swift-async-frame-pointer=never when relative protocol witness tables is on
Building a static library in debug does not work when using swift-async-frame-pointer.
1 parent 02b0c75 commit e12130c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ function(_compile_swift_files
570570

571571
if (SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES)
572572
list(APPEND swift_flags "-Xfrontend" "-enable-relative-protocol-witness-tables")
573+
list(APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never")
573574
endif()
574575

575576
if(SWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES)

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ if run_vendor == 'apple':
10131013
swift_execution_tests_extra_flags += ' -Xfrontend -reflection-metadata-for-debugger-only'
10141014

10151015
if config.swift_stdlib_use_relative_protocol_witness_tables:
1016-
swift_execution_tests_extra_flags += ' -Xfrontend -enable-relative-protocol-witness-tables'
1016+
swift_execution_tests_extra_flags += ' -Xfrontend -enable-relative-protocol-witness-tables -Xfrontend -swift-async-frame-pointer=never'
10171017

10181018
# Build a resource dir for freestanding tests.
10191019
new_resource_dir = os.path.join(config.test_exec_root, "resource_dir")

0 commit comments

Comments
 (0)