bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
307 stars 133 forks source link

Fix LLDB expr evaluation for `swift_{binary,test}` targets only containing Swift in their `srcs` #1269

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

The .swiftmodule resulting from compilation of the target's sources was being ignored (since it cannot be a dependency of anything else), but it needs to be embedded as with any other .swiftmodule in order for LLDB to find it and initialize the AST context properly.

PiperOrigin-RevId: 477544434 (cherry picked from commit c0cdb8b5a2100b3962993654f7409b80f3ce96f2)