Use nasmlink genrule
Avoids cyclic dependency as the name and src must not be the same
This commit is contained in:
parent
4e3283a891
commit
af156c2ebc
8
third_party/nasm/BUILD.system
vendored
8
third_party/nasm/BUILD.system
vendored
@ -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__"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user