Bazel: Fix genrule2 to clean up temporary folder content
Change-Id: I125c1b6b575f4a19c42bd036c609e7c666d5742e
This commit is contained in:
parent
4c79944d5b
commit
df03895a49
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user