From 958b6a4298e8eacfe03bcf68e644d14761939e05 Mon Sep 17 00:00:00 2001 From: kczulko Date: Mon, 23 Sep 2024 12:47:46 +0200 Subject: [PATCH] chore: elm_toolchain_macro removal (#57) --- elm/private/elm_toolchain.bzl | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/elm/private/elm_toolchain.bzl b/elm/private/elm_toolchain.bzl index 5ca20b2..c4cacc8 100644 --- a/elm/private/elm_toolchain.bzl +++ b/elm/private/elm_toolchain.bzl @@ -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, - )