diff options
Diffstat (limited to 'gn/BUILDCONFIG.gn')
-rw-r--r-- | gn/BUILDCONFIG.gn | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn index e6a8b695ff..79d06f400b 100644 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@ -6,12 +6,17 @@ # It's best to keep the names and defaults of is_foo flags consistent with Chrome. declare_args() { - is_debug = true + is_official_build = false is_component_build = false ndk = "" ndk_api = 0 # 0 == picked automatically for target_cpu. sanitize = "" } +declare_args() { + is_debug = !is_official_build +} + +assert(!(is_debug && is_official_build)) # Platform detection if (target_os == "") { @@ -115,6 +120,9 @@ default_configs = [ if (!is_debug) { default_configs += [ "//gn:release" ] } +if (!is_official_build) { + default_configs += [ "//gn:debug_symbols" ] +} set_defaults("executable") { configs = default_configs + [ "//gn:executable" ] |