Modify actions in order not to need toolchain param (#478)
This commit is contained in:
parent
9c9beee741
commit
1a1ee6c230
|
@ -54,8 +54,7 @@ if not exist \"{src}\\\" (
|
||||||
is_executable = True,
|
is_executable = True,
|
||||||
)
|
)
|
||||||
ctx.actions.run(
|
ctx.actions.run(
|
||||||
inputs = [src],
|
inputs = [src, bat],
|
||||||
tools = [bat],
|
|
||||||
outputs = [dst],
|
outputs = [dst],
|
||||||
executable = "cmd.exe",
|
executable = "cmd.exe",
|
||||||
arguments = ["/C", bat.path.replace("/", "\\")],
|
arguments = ["/C", bat.path.replace("/", "\\")],
|
||||||
|
@ -78,7 +77,7 @@ rm -rf \"$2\" && cp -fR \"$1/\" \"$2\"
|
||||||
progress_message = "Copying directory %s" % src.path
|
progress_message = "Copying directory %s" % src.path
|
||||||
|
|
||||||
ctx.actions.run_shell(
|
ctx.actions.run_shell(
|
||||||
tools = [src],
|
inputs = [src],
|
||||||
outputs = [dst],
|
outputs = [dst],
|
||||||
command = cmd,
|
command = cmd,
|
||||||
arguments = [src.path, dst.path],
|
arguments = [src.path, dst.path],
|
||||||
|
|
Loading…
Reference in New Issue