bazel: for the prolog compiler rule, don't use $TMP as temp dir.

The prolog compiler tries to be transactional by renaming a temp file to
its final destination. This only works if $TMP is on the same file
system as the final output.

Change-Id: I3b3d261d61ace2798fca96d849bce9f2bbd46bcd
This commit is contained in:
Han-Wen Nienhuys
2016-09-29 16:55:14 +02:00
parent ef2ff0c62d
commit 7eb9ee7621

View File

@@ -22,7 +22,7 @@ def prolog_cafe_library(
genrule2(
name = name + '__pl2j',
cmd = '$(location //lib/prolog:compiler_bin) ' +
'$$TMP $@ ' +
'$$(dirname $@) $@ ' +
'$(SRCS)',
srcs = srcs,
tools = ['//lib/prolog:compiler_bin'],