Skip to content

Commit

Permalink
build: Add -fdebug-types-section
Browse files Browse the repository at this point in the history
While this may slow builds down a little and result in slightly
larger debug builds, it should reduce the size of production bins.

Adding here to unblock envoyproxy#30394 which has a related issue.

Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax committed Oct 24, 2023
1 parent 6750243 commit 26989c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ common --experimental_allow_tags_propagation

# Enable position independent code (this is the default on macOS and Windows)
# (Workaround for https://github.com/bazelbuild/rules_foreign_cc/issues/421)
build:linux --copt=-fdebug-types-section
build:linux --copt=-fPIC
build:linux --copt=-Wno-deprecated-declarations
build:linux --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
Expand Down

0 comments on commit 26989c0

Please sign in to comment.