Skip to content

Commit

Permalink
Use to_list() for depset iteration.
Browse files Browse the repository at this point in the history
Fixes #201

RELNOTES: None
PiperOrigin-RevId: 245260446
  • Loading branch information
thomasvl authored and swiple-rules-gardener committed Apr 25, 2019
1 parent 85e359d commit 32001f3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions swift/internal/linking.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,18 @@ def register_link_action(
deps_static_framework_files.append(objc.static_framework_file)
else:
deps_dynamic_framework_names.append(depset(
[objc_provider_framework_name(fdir) for fdir in objc.dynamic_framework_dir],
[
objc_provider_framework_name(fdir)
for fdir in objc.dynamic_framework_dir.to_list()
],
))
deps_dynamic_framework_paths.append(depset(
[fdir.dirname for fdir in objc.dynamic_framework_dir],
[fdir.dirname for fdir in objc.dynamic_framework_dir.to_list()],
))
deps_static_framework_files.append(depset(
[
paths.join(fdir, objc_provider_framework_name(fdir))
for fdir in objc.framework_dir
for fdir in objc.framework_dir.to_list()
],
))
deps_sdk_dylibs.append(objc.sdk_dylib)
Expand Down

0 comments on commit 32001f3

Please sign in to comment.