Skip to content

Commit 25b7814

Browse files
committed
Switch xref_runner back to erlang_bytecode
instead of erlang_bytecode2, since the srcs are not a known list of files and therefore the erlang_bytecode2 macro does not generate the 'outs' attr for the actual erlang_bytecode2 rule correctly
1 parent cebdcb9 commit 25b7814

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tools/xref_runner/BUILD.bazel

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
load("//:app_file.bzl", "app_file")
2-
load("//:erlang_bytecode2.bzl", "erlang_bytecode", "erlc_opts")
2+
load("//:erlang_bytecode.bzl", "erlang_bytecode")
33
load("//:erlang_app_info.bzl", "erlang_app_info")
44
load("//:escript.bzl", "escript_archive")
55
load(
66
"//:erlang_app.bzl",
77
"DEFAULT_ERLC_OPTS",
88
)
99

10-
erlc_opts(
11-
name = "erlc_opts",
12-
values = DEFAULT_ERLC_OPTS,
13-
)
14-
1510
erlang_bytecode(
1611
name = "getopt_beam_files",
1712
srcs = ["@getopt_src//:srcs"],
1813
dest = "ebin",
19-
erlc_opts = ":erlc_opts",
14+
erlc_opts = DEFAULT_ERLC_OPTS,
2015
)
2116

2217
app_file(
@@ -37,7 +32,7 @@ erlang_bytecode(
3732
name = "xref_runner_beam_files",
3833
srcs = ["@xref_runner_src//:srcs"],
3934
dest = "ebin",
40-
erlc_opts = ":erlc_opts",
35+
erlc_opts = DEFAULT_ERLC_OPTS,
4136
)
4237

4338
app_file(

0 commit comments

Comments
 (0)