gn: Fix symbol_level use in chromium style

Bug: crashpad:79
Change-Id: I417f17194ee1a8ef157ea1e67e64878ccb6f5c10
Reviewed-on: https://chromium-review.googlesource.com/835528
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
Scott Graham 2017-12-19 17:15:10 -08:00 committed by Commit Bot
parent e7ebdf019e
commit cd7428971f

View File

@ -14,6 +14,10 @@
import("../build/crashpad_buildconfig.gni")
if (crashpad_is_in_chromium) {
import("//build/config/compiler/compiler.gni")
}
static_library("snapshot") {
sources = [
"annotation_snapshot.cc",
@ -470,10 +474,13 @@ if (crashpad_is_win) {
"../third_party/mini_chromium:base",
"../util",
]
if (crashpad_is_in_chromium && symbol_level == 0) {
# The tests that use this executable rely on at least minimal debug info.
configs -= [ "//build/config/compiler:default_symbols" ]
configs += [ "//build/config/compiler:minimal_symbols" ]
if (crashpad_is_in_chromium) {
if (symbol_level == 0) {
# The tests that use this executable rely on at least minimal debug
# info.
configs -= [ "//build/config/compiler:default_symbols" ]
configs += [ "//build/config/compiler:minimal_symbols" ]
}
}
}
@ -486,10 +493,12 @@ if (crashpad_is_win) {
"../client",
"../third_party/mini_chromium:base",
]
if (crashpad_is_in_chromium && symbol_level == 0) {
# The tests that use this module rely on at least minimal debug info.
configs -= [ "//build/config/compiler:default_symbols" ]
configs += [ "//build/config/compiler:minimal_symbols" ]
if (crashpad_is_in_chromium) {
if (symbol_level == 0) {
# The tests that use this module rely on at least minimal debug info.
configs -= [ "//build/config/compiler:default_symbols" ]
configs += [ "//build/config/compiler:minimal_symbols" ]
}
}
}
}