Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Automated rollback of commit 71998c8.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 354172938
  • Loading branch information
allevato authored and swiple-rules-gardener committed Jan 27, 2021
1 parent 71998c8 commit 6dc76fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions swift/internal/derived_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ def _intermediate_object_file(actions, target_name, src):
)

def _module_map(actions, target_name):
"""Declares the module map for a target.
These module maps are used when generating a Swift-compatible module map for
a C/Objective-C target, and also when generating the module map for the
generated header of a Swift target.
"""Declares the module map for the generated header of a target.
Args:
actions: The context's actions object.
Expand All @@ -121,7 +117,9 @@ def _module_map(actions, target_name):
Returns:
The declared `File`.
"""
return actions.declare_file("{}.swift.modulemap".format(target_name))
return actions.declare_file(
"{}.modulemaps/module.modulemap".format(target_name),
)

def _modulewrap_object(actions, target_name):
"""Declares the object file used to wrap Swift modules for ELF binaries.
Expand Down
4 changes: 2 additions & 2 deletions test/private_deps_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def private_deps_test_suite():
private_deps_provider_test(
name = "{}_client_cc_deps_modulemaps".format(name),
expected_files = [
"/test/fixtures/private_deps/public_cc.swift.modulemap",
"-/test/fixtures/private_deps/private_cc.swift.modulemap",
"/test/fixtures/private_deps/public_cc.modulemaps/module.modulemap",
"-/test/fixtures/private_deps/private_cc.modulemaps/module.modulemap",
],
field = "transitive_modules.clang!.module_map",
provider = "SwiftInfo",
Expand Down

0 comments on commit 6dc76fe

Please sign in to comment.