Skip to content

Commit 9bbd940

Browse files
authored
chore: enable always_include_developer_search_paths for all swift_library targets in external Swift packages (#911)
Background: SPM always includes the developer search paths for compilation and linking. Now that `rules_swift` supports including these for non-test targets, we will enable this feature. - Use `always_include_developer_search_paths` for generated `swift_library` targets. - Remove check for `XCTest` imports. Previously, we would mark targets as `testonly = True` if `XCTest` imports were detected. With the `always_include_developer_search_paths` feature, this is no longer necessary. Closes #791.
1 parent a9ab9f2 commit 9bbd940

File tree

7 files changed

+293
-83
lines changed

7 files changed

+293
-83
lines changed

examples/nimble_example/MODULE.bazel.lock

Lines changed: 250 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nimble_example/Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nimble_example/Sources/NimbleExample/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ swift_library(
1414
tags = ["manual"],
1515
deps = [
1616
"@swiftpkg_nimble//:Sources_Nimble",
17+
"@swiftpkg_nimble//:Sources_NimbleObjectiveC",
1718
"@swiftpkg_quick//:Sources_Quick",
1819
],
1920
)

0 commit comments

Comments
 (0)