From af156c2ebccb2acfe0c82ace70c7ff29cb5836bc Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 12 Aug 2020 15:48:17 +0200 Subject: [PATCH] Use nasmlink genrule Avoids cyclic dependency as the name and src must not be the same --- third_party/nasm/BUILD.system | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/third_party/nasm/BUILD.system b/third_party/nasm/BUILD.system index 7f74da7595a..52f608187fe 100644 --- a/third_party/nasm/BUILD.system +++ b/third_party/nasm/BUILD.system @@ -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__"], )