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

Commit 06322f1

Browse files
allevatoswiple-rules-gardener
authored andcommitted
Rename swift.strict_modules to swift.layering_check to match the C++ feature name.
PiperOrigin-RevId: 371693623
1 parent 1aca023 commit 06322f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

swift/internal/compiling.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ load(
4242
"SWIFT_FEATURE_FASTBUILD",
4343
"SWIFT_FEATURE_FULL_DEBUG_INFO",
4444
"SWIFT_FEATURE_INDEX_WHILE_BUILDING",
45+
"SWIFT_FEATURE_LAYERING_CHECK",
4546
"SWIFT_FEATURE_MODULE_MAP_HOME_IS_CWD",
4647
"SWIFT_FEATURE_NO_EMBED_DEBUG_MODULE",
4748
"SWIFT_FEATURE_NO_GENERATED_MODULE_MAP",
4849
"SWIFT_FEATURE_OPT",
4950
"SWIFT_FEATURE_OPT_USES_OSIZE",
5051
"SWIFT_FEATURE_OPT_USES_WMO",
5152
"SWIFT_FEATURE_REWRITE_GENERATED_HEADER",
52-
"SWIFT_FEATURE_STRICT_MODULES",
5353
"SWIFT_FEATURE_SUPPORTS_LIBRARY_EVOLUTION",
5454
"SWIFT_FEATURE_SYSTEM_MODULE",
5555
"SWIFT_FEATURE_USE_C_MODULES",
@@ -452,7 +452,7 @@ def compile_action_configs(
452452
),
453453
],
454454
not_features = [
455-
[SWIFT_FEATURE_STRICT_MODULES],
455+
[SWIFT_FEATURE_LAYERING_CHECK],
456456
[SWIFT_FEATURE_SYSTEM_MODULE],
457457
],
458458
),
@@ -464,7 +464,7 @@ def compile_action_configs(
464464
"-fmodules-strict-decluse",
465465
),
466466
],
467-
features = [SWIFT_FEATURE_STRICT_MODULES],
467+
features = [SWIFT_FEATURE_LAYERING_CHECK],
468468
not_features = [SWIFT_FEATURE_SYSTEM_MODULE],
469469
),
470470
swift_toolchain_config.action_config(

swift/internal/feature_names.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SWIFT_FEATURE_EMIT_C_MODULE = "swift.emit_c_module"
6161
# If enabled, when compiling an explicit C or Objectve-C module, every header
6262
# included by the module being compiled must belong to one of the modules listed
6363
# in its dependencies. This is ignored for system modules.
64-
SWIFT_FEATURE_STRICT_MODULES = "swift.strict_modules"
64+
SWIFT_FEATURE_LAYERING_CHECK = "swift.layering_check"
6565

6666
# If enabled, the C or Objective-C target should be compiled as a system module.
6767
SWIFT_FEATURE_SYSTEM_MODULE = "swift.system_module"

0 commit comments

Comments
 (0)