Skip to content

Commit

Permalink
Use swiftc_inputs instead of deps for Swift VFS target
Browse files Browse the repository at this point in the history
This fixes a missing `_swift_vfs.yaml` error related to the changes in: bazelbuild/rules_swift#1191
  • Loading branch information
luispadron committed Jun 19, 2024
1 parent ec08184 commit 83c7ae4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rules/library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ def apple_library(
tags = _MANUAL,
)
module_map = "%s.extended.modulemap" % name
swiftc_inputs.append(module_map)

# Note: this needs to go here, in order to virtualize the extended module
framework_vfs_overlay(
Expand Down Expand Up @@ -991,11 +992,11 @@ def apple_library(
"@build_bazel_rules_ios//:virtualize_frameworks": framework_vfs_swift_copts,
"//conditions:default": framework_vfs_swift_copts if enable_framework_vfs else [],
}) + additional_swift_copts,
deps = deps + private_deps + private_dep_names + lib_names + select({
deps = deps + private_deps + private_dep_names + lib_names,
swiftc_inputs = swiftc_inputs + select({
"@build_bazel_rules_ios//:virtualize_frameworks": [framework_vfs_overlay_name_swift],
"//conditions:default": [framework_vfs_overlay_name_swift] if enable_framework_vfs else [],
}),
swiftc_inputs = swiftc_inputs,
features = features + ["swift.no_generated_module_map", "swift.use_pch_output_dir"] + select({
"@build_bazel_rules_ios//:virtualize_frameworks": ["swift.vfsoverlay"],
"//conditions:default": [],
Expand Down

0 comments on commit 83c7ae4

Please sign in to comment.