| Index: chrome/BUILD.gn
|
| diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
|
| index 0a09f8e618d8f4f8b97c3f2bc0eb8045bccf4e16..305d2df39e8914895aed3fd58f909cb605f56bd9 100644
|
| --- a/chrome/BUILD.gn
|
| +++ b/chrome/BUILD.gn
|
| @@ -1026,40 +1026,42 @@ if (is_linux) {
|
| ]
|
| }
|
|
|
| - action("linux_symbols") {
|
| - script = "//build/linux/dump_app_syms.py"
|
| + if (is_official_build) {
|
| + action("linux_symbols") {
|
| + script = "//build/linux/dump_app_syms.py"
|
|
|
| - dump_syms_label = "//breakpad:dump_syms($host_toolchain)"
|
| - dump_syms_binary =
|
| - get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms"
|
| + dump_syms_label = "//breakpad:dump_syms($host_toolchain)"
|
| + dump_syms_binary =
|
| + get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms"
|
|
|
| - chrome_binary = "$root_out_dir/chrome"
|
| - if (current_cpu == "x86") {
|
| - # Use "ia32" instead of "x86" for GYP compat.
|
| - symbol_file = "$root_out_dir/chrome.breakpad.ia32"
|
| - } else {
|
| - symbol_file = "$root_out_dir/chrome.breakpad.$current_cpu"
|
| - }
|
| + chrome_binary = "$root_out_dir/chrome"
|
| + if (current_cpu == "x86") {
|
| + # Use "ia32" instead of "x86" for GYP compat.
|
| + symbol_file = "$root_out_dir/chrome.breakpad.ia32"
|
| + } else {
|
| + symbol_file = "$root_out_dir/chrome.breakpad.$current_cpu"
|
| + }
|
|
|
| - inputs = [
|
| - chrome_binary,
|
| - dump_syms_binary,
|
| - ]
|
| - outputs = [
|
| - symbol_file,
|
| - ]
|
| + inputs = [
|
| + chrome_binary,
|
| + dump_syms_binary,
|
| + ]
|
| + outputs = [
|
| + symbol_file,
|
| + ]
|
|
|
| - args = [
|
| - "./" + rebase_path(dump_syms_binary, root_build_dir),
|
| - "0", # TODO(GYP) This is linux_strip_binary if it is needed.
|
| - rebase_path(chrome_binary, root_build_dir),
|
| - rebase_path(symbol_file, root_build_dir),
|
| - ]
|
| + args = [
|
| + "./" + rebase_path(dump_syms_binary, root_build_dir),
|
| + "0", # TODO(GYP) This is linux_strip_binary if it is needed.
|
| + rebase_path(chrome_binary, root_build_dir),
|
| + rebase_path(symbol_file, root_build_dir),
|
| + ]
|
|
|
| - deps = [
|
| - ":chrome",
|
| - dump_syms_label,
|
| - ]
|
| + deps = [
|
| + ":chrome",
|
| + dump_syms_label,
|
| + ]
|
| + }
|
| }
|
|
|
| # Copies some scripts and resources that are used for desktop integration.
|
|
|