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"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
genrule(
|
||||||
|
name = "lnnasmlink",
|
||||||
|
outs = ["nasmlink"],
|
||||||
|
cmd = "ln -s $$(which nasm) $@",
|
||||||
|
)
|
||||||
|
|
||||||
sh_binary(
|
sh_binary(
|
||||||
name = "nasm",
|
name = "nasm",
|
||||||
srcs = ["nasm"],
|
srcs = ["nasmlink"],
|
||||||
visibility = ["@libjpeg_turbo//:__pkg__"],
|
visibility = ["@libjpeg_turbo//:__pkg__"],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user