Skip to content

Commit

Permalink
Apply SWIFT_FEATURE_USE_GLOBAL_MODULE_CACHE to newer actions (#1271)
Browse files Browse the repository at this point in the history
This was missed when these actions were added, most likely because
`upstream` uses explicit modules.

Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
brentleyjones committed Jun 24, 2024
1 parent aa933ed commit 83b9115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swift/toolchains/config/compile_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def compile_action_configs(
SWIFT_ACTION_COMPILE_MODULE_INTERFACE,
SWIFT_ACTION_DERIVE_FILES,
SWIFT_ACTION_DUMP_AST,
SWIFT_ACTION_SYMBOL_GRAPH_EXTRACT,
],
configurators = [_global_module_cache_configurator],
features = [SWIFT_FEATURE_USE_GLOBAL_MODULE_CACHE],
Expand All @@ -637,8 +638,10 @@ def compile_action_configs(
ActionConfigInfo(
actions = [
SWIFT_ACTION_COMPILE,
SWIFT_ACTION_COMPILE_MODULE_INTERFACE,
SWIFT_ACTION_DERIVE_FILES,
SWIFT_ACTION_DUMP_AST,
SWIFT_ACTION_SYMBOL_GRAPH_EXTRACT,
],
configurators = [_tmpdir_module_cache_configurator],
features = [
Expand All @@ -653,6 +656,7 @@ def compile_action_configs(
SWIFT_ACTION_COMPILE_MODULE_INTERFACE,
SWIFT_ACTION_DERIVE_FILES,
SWIFT_ACTION_DUMP_AST,
SWIFT_ACTION_SYMBOL_GRAPH_EXTRACT,
],
configurators = [
add_arg("-Xwrapped-swift=-ephemeral-module-cache"),
Expand Down

0 comments on commit 83b9115

Please sign in to comment.