diff options
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r-- | gn/BUILD.gn | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index c5db0a9660..fd2d0074c6 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -31,7 +31,6 @@ config("no_rtti") { config("default") { cflags = [ "-O1", - "-g", "-fstrict-aliasing", "-fPIC", "-fvisibility=hidden", @@ -57,6 +56,14 @@ config("default") { ] ldflags = [] + # It's annoying to wait for full debug symbols to push over + # to Android devices. -gline-tables-only is a lot slimmer. + if (is_android) { + cflags += [ "-gline-tables-only" ] + } else { + cflags += [ "-g" ] + } + if (current_cpu == "arm") { cflags += [ "-march=armv7-a", |