Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index d651e4ff719c5462e9d2a899a8d7d1e1d831fbc9..52256f5dfc047fb9b499b7b21741ddd01a9a1538 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -75,10 +75,13 @@ config("compiler") { |
# so we do so here. Normal function visibility is controlled by |
# //build/config/gcc:symbol_visibility_hidden. |
"-fvisibility-inlines-hidden", |
- |
- # We need the frame pointer for CPU and heap profiling. |
- "-fno-omit-frame-pointer", |
] |
+ if (!is_product) { |
+ common_flags += [ |
+ # We need the frame pointer for CPU and heap profiling. |
+ "-fno-omit-frame-pointer", |
+ ] |
+ } |
cflags_cc += common_flags |
cflags_objcc += common_flags |