Skip to content

[LLDB] Turn off resilience bypass for textual swiftinterface files #80283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

adrian-prantl
Copy link
Contributor

As the old comment indicates, it was not expected that build systems would register binary swift modules produced from textual interfaces with -add_ast_path, but we have found examples of the in the wild and it leads to the most unexpected side effects. Fixing this is straightforward, we can just check if a binary module was compiled from a textual interface and then not bypass resilience.

rdar://145226754

As the old comment indicates, it was not expected that build systems
would register binary swift modules produced from textual interfaces
with -add_ast_path, but we have found examples of the in the wild and
it leads to the most unexpected side effects. Fixing this is
straightforward, we can just check if a binary module was compiled
from a textual interface and then not bypass resilience.

rdar://145226754
@adrian-prantl adrian-prantl requested a review from artemcm as a code owner March 25, 2025 19:20
@adrian-prantl adrian-prantl requested a review from xymus March 25, 2025 19:21
@adrian-prantl
Copy link
Contributor Author

I'm still working on a test for this in the LLDB testsuite.

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl
Copy link
Contributor Author

Test in swiftlang/llvm-project#10347

@adrian-prantl adrian-prantl merged commit 84d313f into swiftlang:main Mar 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant