diff --git a/.bazelrc b/.bazelrc index 24fc95445b..4ff0eba349 100644 --- a/.bazelrc +++ b/.bazelrc @@ -34,6 +34,7 @@ build:minimal --@io_bazel_rules_go//go/config:tags=minimal build:release --compilation_mode=opt build:release --stamp build:release --define pgo_enabled=1 +build:release --strip=always # Build binary with cgo symbolizer for debugging / profiling. build:cgo_symbolizer --copt=-g diff --git a/changelog/pvl-strip.md b/changelog/pvl-strip.md new file mode 100644 index 0000000000..5f9cd58bfd --- /dev/null +++ b/changelog/pvl-strip.md @@ -0,0 +1,3 @@ +### Changed + +- Bazel builds with `--config=release` now properly apply `--strip=always` to strip debug symbols from the release assets.