Bazel: Fix genrule2 to clean up temporary folder content

Change-Id: I125c1b6b575f4a19c42bd036c609e7c666d5742e
This commit is contained in:
David Ostrovsky 2019-10-31 23:43:47 +01:00
parent 4c79944d5b
commit df03895a49

View File

@ -21,6 +21,7 @@ def genrule2(cmd, **kwargs):
"ROOT=$$PWD",
"TMP=$$(mktemp -d || mktemp -d -t bazel-tmp)",
"(" + cmd + ")",
"rm -rf $$TMP",
])
native.genrule(
cmd = cmd,