Skip to content

Commit d2aec91

Browse files
committed
Fixup redeclaration of 'transition'
1 parent 64a6fda commit d2aec91

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

private/beam_transition.bzl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
def _impl(settings, attr):
22
_ignore = (settings, attr)
3-
4-
# print("_impl")
5-
# print("settings", settings)
6-
# print("attr", attr)
7-
return {
8-
"arm": {"//command_line_option:cpu": "arm"},
9-
"x86": {"//command_line_option:cpu": "x86"},
10-
"k8": {"//command_line_option:cpu": "k8"},
11-
}
3+
return {"//command_line_option:cpu": "beam"}
124

135
beam_transition = transition(
146
implementation = _impl,

private/erlang_bytecode2.bzl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ ErlcOptsInfo = provider(
1616
},
1717
)
1818

19-
def _transition_impl(settings, attr):
20-
return {"//command_line_option:cpu": "beam"}
21-
22-
transition = transition(
23-
implementation = _transition_impl,
24-
inputs = [],
25-
outputs = ["//command_line_option:cpu"],
26-
)
27-
2819
def _impl(ctx):
2920
if len(ctx.attr.outs) == 0:
3021
fail("attr outs must not be empty")
@@ -131,7 +122,7 @@ fi
131122

132123
erlang_bytecode = rule(
133124
implementation = _impl,
134-
cfg = transition,
125+
cfg = beam_transition,
135126
attrs = {
136127
"app_name": attr.string(),
137128
"hdrs": attr.label_list(

0 commit comments

Comments
 (0)