bazelbuild / rules_swift

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

Pass `-enable-testing` when compiling the sources in a `swift_test` in discovery mode #1274

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

When doing manual discovery, this allows the generated sources to @testable import that module even when building with -c opt.

PiperOrigin-RevId: 471809177 (cherry picked from commit 82f828b983baecd0fa3ee14a6754eb71938895c0)