Modify actions in order not to need toolchain param (#478)

This commit is contained in:
kotlaja 2023-11-16 15:04:55 +01:00 committed by GitHub
parent 9c9beee741
commit 1a1ee6c230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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],