Skip to content

Commit

Permalink
Make sure that the path to the generated header in the generated modu…
Browse files Browse the repository at this point in the history
…le map is workspace-relative when the feature configuration asks for it.

PiperOrigin-RevId: 681838149
  • Loading branch information
allevato authored and swiple-rules-gardener committed Oct 3, 2024
1 parent aa31aa1 commit f2eba62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ load(
"SWIFT_FEATURE_INDEX_WHILE_BUILDING",
"SWIFT_FEATURE_LAYERING_CHECK_SWIFT",
"SWIFT_FEATURE_MODULAR_INDEXING",
"SWIFT_FEATURE_MODULE_MAP_HOME_IS_CWD",
"SWIFT_FEATURE_OPT",
"SWIFT_FEATURE_OPT_USES_CMO",
"SWIFT_FEATURE_OPT_USES_WMO",
Expand Down Expand Up @@ -926,6 +927,10 @@ def _compile_generated_header_clang_module(
module_map_file = generated_module_map,
module_name = module_name,
public_headers = [generated_header_file],
workspace_relative = is_feature_enabled(
feature_configuration = feature_configuration,
feature_name = SWIFT_FEATURE_MODULE_MAP_HOME_IS_CWD,
),
)

compilation_context_to_compile = (
Expand Down

1 comment on commit f2eba62

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.