Skip to content

Commit

Permalink
Log to stdout in addition to files for Bazel (xlscc, opt, and codegen…
Browse files Browse the repository at this point in the history
…) rules

PiperOrigin-RevId: 591127068
  • Loading branch information
JoshVarga authored and copybara-github committed Dec 15, 2023
1 parent 85c54d4 commit 0a58003
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xls/build_rules/xls_codegen_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def xls_ir_verilog_impl(ctx, src):
outputs = my_generated_files,
tools = tools,
inputs = runfiles.files,
command = "{} {} {} 2>{}".format(
command = "{} {} {} 2>&1 | tee {}".format(
codegen_tool.path,
src.path,
final_args,
Expand Down
2 changes: 1 addition & 1 deletion xls/build_rules/xls_ir_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _optimize_ir(ctx, src):
tools = [opt_ir_tool],
# The files required for optimizing the IR file.
inputs = runfiles.files,
command = "{} {} {} 1>{} 2>{}".format(
command = "{} {} {} 2>&1 >{} | tee {}".format(
opt_ir_tool.path,
src.path,
my_args,
Expand Down
2 changes: 1 addition & 1 deletion xls/contrib/xlscc/build_rules/xlscc_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _xls_cc_ir_impl(ctx):
tools = [ctx.executable._xlscc_tool],
# The files required for converting the C/C++ source file.
inputs = runfiles.files,
command = "{} {} --block_pb {} {} {} {} {} 1>{} 2>{}".format(
command = "{} {} --block_pb {} {} {} {} {} 2>&1 >{} | tee {}".format(
ctx.executable._xlscc_tool.path,
ctx.file.src.path,
block_pb,
Expand Down

0 comments on commit 0a58003

Please sign in to comment.