Skip to content

Commit 202c0fc

Browse files
[build] Generate debug info for assembly. (flutter#183425)
This allows bloaty to attribute functions (but not variables) written in assembly to their source file. Which in turn allows the binary_size visualization to group, e.g., all the boringssl crypto kernels under boringssl instead of them all appearing at the top level.
1 parent 5ffb474 commit 202c0fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • engine/src/build/config/compiler

engine/src/build/config/compiler/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,7 @@ config("symbols") {
11031103
}
11041104
} else {
11051105
cflags = [ "-g2" ]
1106+
asmflags = [ "-g" ]
11061107
if (is_apple) {
11071108
swiftflags = [ "-g" ]
11081109
}
@@ -1115,12 +1116,14 @@ config("minimal_symbols") {
11151116
ldflags = [ "/DEBUG" ]
11161117
} else {
11171118
cflags = [ "-g1" ]
1119+
asmflags = [ "-g" ]
11181120
}
11191121
}
11201122

11211123
config("no_symbols") {
11221124
if (!is_win) {
11231125
cflags = [ "-g0" ]
1126+
asmflags = [ "-g0" ]
11241127
}
11251128
}
11261129

0 commit comments

Comments
 (0)