Skip to content

Commit

Permalink
chore: elm_toolchain_macro removal (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
kczulko authored Sep 23, 2024
1 parent 25e5321 commit 958b6a4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions elm/private/elm_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,3 @@ elm_toolchain = rule(
implementation = _elm_toolchain_impl,
)

def elm_toolchain_macro(name, exec_compatible_with):
native.genrule(
name = "elm_compiler_{}".format(name),
srcs = ["@com_github_elm_compiler_{}//file".format(name)],
outs = [ "%s/elm-compiler" % name ],
cmd = "gunzip -c $(SRCS) > $@ && chmod +x $@"
)

elm_toolchain(
name = name + "_info",
elm = ":elm_compiler_{}".format(name),
visibility = ["//visibility:public"],
)

native.toolchain(
name = name,
toolchain_type = "@rules_elm//elm:toolchain",
exec_compatible_with = exec_compatible_with,
toolchain = ":%s_info" % name,
)

0 comments on commit 958b6a4

Please sign in to comment.