From 173b9a064d80b2dfccef143d4ba369f308e83666 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Tue, 24 Oct 2023 18:57:28 +0100 Subject: [PATCH] build: Add `-fdebug-types-section` 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 #30394 which has a related issue. Signed-off-by: Ryan Northey --- .bazelrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bazelrc b/.bazelrc index f4f6486dfcb8..fa3ec866f6fc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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