Fix for Darwin (output is different, but it won't error out).

pull/13171/head
Joshua Haberman 4 years ago
parent 165e01ec6f
commit 86f671d5fd
  1. 3
      benchmarks/BUILD

@ -189,5 +189,6 @@ genrule(
suffixes = ["_upb_binary", "_protobuf_binary", "_lite_protobuf_binary"],
),
outs = ["size_data.txt"],
cmd = "size --format=GNU -d $(SRCS) > $@",
# We want --format=GNU which counts rodata with data, not text.
cmd = "size $$($$OSTYPE == 'linux-gnu' ? '--format=GNU -d' : '') $(SRCS) > $@",
)

Loading…
Cancel
Save