Skip to content

Commit c21d894

Browse files
authored
Added //rust/platform:macos alias (#593)
1 parent 9aa4956 commit c21d894

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rust/platform/platform.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ def declare_config_settings():
8181
actual = ":darwin",
8282
)
8383

84+
# Add alias for OSX to "macos" to be consistent with the long-term
85+
# direction of `@platforms` in using the OS's modern name.
86+
native.alias(
87+
name = "macos",
88+
actual = ":darwin",
89+
)
90+
8491
all_supported_triples = _SUPPORTED_T1_PLATFORM_TRIPLES + _SUPPORTED_T2_PLATFORM_TRIPLES
8592
for triple in all_supported_triples:
8693
native.config_setting(

0 commit comments

Comments
 (0)