Skip to content

Commit

Permalink
Fix _optimize_ir passing boolean flags incorrectly
Browse files Browse the repository at this point in the history
Fixes: google#1464
PiperOrigin-RevId: 641064539
  • Loading branch information
allight authored and copybara-github committed Jun 6, 2024
1 parent 800a3d1 commit 2e7e6e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xls/build_rules/xls_ir_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def _optimize_ir(ctx, src, original_input_files):
args.add(src.ir_file)

for flag, value in opt_ir_args.items():
args.add("--" + flag, value)
# Need to handle that some flag values are things like 'true' and
# 'false' that need to be handled carefully.
args.add("--{}={}".format(flag, value))

if ctx.attr.ram_rewrites:
ram_rewrites = []
Expand Down

0 comments on commit 2e7e6e9

Please sign in to comment.