fix `//benchmarks:size_data` to use an actual bash ternary instead of pseudocode

pull/18234/head
Zoey Greer 6 months ago
parent 9c835afdce
commit b43be78388
  1. 2
      benchmarks/BUILD

@ -235,7 +235,7 @@ genrule(
),
outs = ["size_data.txt"],
# We want --format=GNU which counts rodata with data, not text.
cmd = "size $$($$OSTYPE == 'linux-gnu' ? '--format=GNU -d' : '') $(SRCS) > $@",
cmd = "size $$([ $$OSTYPE == 'linux-gnu' ] && echo '--format=GNU -d' || echo '') $(SRCS) > $@",
# "size" sometimes isn't available remotely.
local = 1,
tags = ["no-remote-exec"],

Loading…
Cancel
Save