Bazel: Simplify prolog_cafe_library rule implementation

genrule2 exposes root and temp directpries, but these are not used in
this rule, so that we can just use native genrule.

Change-Id: Id1e56ba47bf04a73559ff84a7c8f69745a6b3129
This commit is contained in:
David Ostrovsky
2017-05-17 06:22:05 +02:00
parent 66b08a5601
commit a3844fca7f

View File

@@ -12,14 +12,12 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("//tools/bzl:genrule2.bzl", "genrule2")
def prolog_cafe_library( def prolog_cafe_library(
name, name,
srcs, srcs,
deps = [], deps = [],
**kwargs): **kwargs):
genrule2( native.genrule(
name = name + '__pl2j', name = name + '__pl2j',
cmd = '$(location //lib/prolog:compiler_bin) ' + cmd = '$(location //lib/prolog:compiler_bin) ' +
'$$(dirname $@) $@ ' + '$$(dirname $@) $@ ' +