File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,20 @@ def _macos_universal_transition_impl(settings, _attr):
18
18
# Create a split transition from any macOS cpu to a list of all macOS cpus
19
19
if settings ["//command_line_option:cpu" ].startswith ("darwin" ):
20
20
return [
21
- {"//command_line_option:cpu" : "darwin_x86_64" },
22
- {"//command_line_option:cpu" : "darwin_arm64" },
21
+ {
22
+ "//command_line_option:cpu" : "darwin_arm64" ,
23
+ "//command_line_option:platforms" : "//platforms:macos_arm64" ,
24
+ },
25
+ {
26
+ "//command_line_option:cpu" : "darwin_x86_64" ,
27
+ "//command_line_option:platforms" : "//platforms:macos_x86_64" ,
28
+ },
23
29
]
24
30
else :
25
31
return settings
26
32
27
33
macos_universal_transition = transition (
28
34
implementation = _macos_universal_transition_impl ,
29
35
inputs = ["//command_line_option:cpu" ],
30
- outputs = ["//command_line_option:cpu" ],
36
+ outputs = ["//command_line_option:cpu" , "//command_line_option:platforms" ],
31
37
)
You can’t perform that action at this time.
0 commit comments