blob: a4f37cd58bdea39f1e87aeaa780c9592b7562d01 [file]
load("//rust:defs.bzl", "rust_binary")
rust_binary(
name = "collect_rust_coverage",
srcs = ["collect_rust_coverage.rs"],
edition = "2018",
# To ensure this tool is produced deterministically, debug info
# is stripped out. On macOS, full symbol stripping is needed to
# also remove N_OSO stab entries whose timestamps and sandbox
# paths vary between builds.
rustc_flags = select({
"@platforms//os:linux": ["-Cstrip=debuginfo"],
"@platforms//os:macos": ["-Cstrip=symbols"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
)