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

Commit

Permalink
Rename swift.strict_modules to swift.layering_check to match the …
Browse files Browse the repository at this point in the history
…C++ feature name.

PiperOrigin-RevId: 371693623
  • Loading branch information
allevato authored and swiple-rules-gardener committed May 3, 2021
1 parent 1aca023 commit 06322f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ load(
"SWIFT_FEATURE_FASTBUILD",
"SWIFT_FEATURE_FULL_DEBUG_INFO",
"SWIFT_FEATURE_INDEX_WHILE_BUILDING",
"SWIFT_FEATURE_LAYERING_CHECK",
"SWIFT_FEATURE_MODULE_MAP_HOME_IS_CWD",
"SWIFT_FEATURE_NO_EMBED_DEBUG_MODULE",
"SWIFT_FEATURE_NO_GENERATED_MODULE_MAP",
"SWIFT_FEATURE_OPT",
"SWIFT_FEATURE_OPT_USES_OSIZE",
"SWIFT_FEATURE_OPT_USES_WMO",
"SWIFT_FEATURE_REWRITE_GENERATED_HEADER",
"SWIFT_FEATURE_STRICT_MODULES",
"SWIFT_FEATURE_SUPPORTS_LIBRARY_EVOLUTION",
"SWIFT_FEATURE_SYSTEM_MODULE",
"SWIFT_FEATURE_USE_C_MODULES",
Expand Down Expand Up @@ -452,7 +452,7 @@ def compile_action_configs(
),
],
not_features = [
[SWIFT_FEATURE_STRICT_MODULES],
[SWIFT_FEATURE_LAYERING_CHECK],
[SWIFT_FEATURE_SYSTEM_MODULE],
],
),
Expand All @@ -464,7 +464,7 @@ def compile_action_configs(
"-fmodules-strict-decluse",
),
],
features = [SWIFT_FEATURE_STRICT_MODULES],
features = [SWIFT_FEATURE_LAYERING_CHECK],
not_features = [SWIFT_FEATURE_SYSTEM_MODULE],
),
swift_toolchain_config.action_config(
Expand Down
2 changes: 1 addition & 1 deletion swift/internal/feature_names.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SWIFT_FEATURE_EMIT_C_MODULE = "swift.emit_c_module"
# If enabled, when compiling an explicit C or Objectve-C module, every header
# included by the module being compiled must belong to one of the modules listed
# in its dependencies. This is ignored for system modules.
SWIFT_FEATURE_STRICT_MODULES = "swift.strict_modules"
SWIFT_FEATURE_LAYERING_CHECK = "swift.layering_check"

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

0 comments on commit 06322f1

Please sign in to comment.