Skip to content

Commit

Permalink
build: dead strip and gc the sizeopt build (envoyproxy#23906)
Browse files Browse the repository at this point in the history
For envoyproxy/envoy-mobile#180

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
  • Loading branch information
alyssawilk authored Nov 10, 2022
1 parent b7b2463 commit c82d8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ build:libc++ --action_env=BAZEL_LINKOPTS=-lm:-pthread
build:libc++ --define force_libcpp=enabled

# Optimize build for binary size reduction.
build:sizeopt -c opt --copt -Os
build:sizeopt -c opt --copt -Os --linkopt=-Wl,--gc-sections --linkopt=-Wl,--dead_strip

# Test options
build --test_env=HEAPCHECK=normal --test_env=PPROF_PATH
Expand Down

0 comments on commit c82d8b2

Please sign in to comment.