Use nasmlink genrule

Avoids cyclic dependency as the name and src must not be the same
This commit is contained in:
Alexander Grund 2020-08-12 15:48:17 +02:00
parent 4e3283a891
commit af156c2ebc
No known key found for this signature in database
GPG Key ID: E92C451FC21EF13F

View File

@ -5,8 +5,14 @@ filegroup(
visibility = ["//visibility:public"],
)
genrule(
name = "lnnasmlink",
outs = ["nasmlink"],
cmd = "ln -s $$(which nasm) $@",
)
sh_binary(
name = "nasm",
srcs = ["nasm"],
srcs = ["nasmlink"],
visibility = ["@libjpeg_turbo//:__pkg__"],
)