OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 if (current_cpu == "arm") { | 6 if (current_cpu == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 # On Android we kind of optimize some things that don't affect debugging | 738 # On Android we kind of optimize some things that don't affect debugging |
739 # much even when optimization is disabled to get the binary size down. | 739 # much even when optimization is disabled to get the binary size down. |
740 cflags = [ | 740 cflags = [ |
741 "-Os", | 741 "-Os", |
742 "-fdata-sections", | 742 "-fdata-sections", |
743 "-ffunction-sections", | 743 "-ffunction-sections", |
744 ] | 744 ] |
745 ldflags = common_optimize_on_ldflags | 745 ldflags = common_optimize_on_ldflags |
746 } else { | 746 } else { |
747 cflags = [ | 747 cflags = [ |
748 "-O1", | 748 "-O2", |
749 "-fdata-sections", | 749 "-fdata-sections", |
750 "-ffunction-sections", | 750 "-ffunction-sections", |
751 ] | 751 ] |
752 } | 752 } |
753 } | 753 } |
754 | 754 |
755 # Symbols ---------------------------------------------------------------------- | 755 # Symbols ---------------------------------------------------------------------- |
756 | 756 |
757 config("symbols") { | 757 config("symbols") { |
758 if (is_win) { | 758 if (is_win) { |
759 import("//build/toolchain/goma.gni") | 759 import("//build/toolchain/goma.gni") |
760 if (use_goma) { | 760 if (use_goma) { |
761 cflags = [ "/Z7" ] # No PDB file | 761 cflags = [ "/Z7" ] # No PDB file |
762 } else { | 762 } else { |
763 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | 763 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
764 } | 764 } |
765 ldflags = [ "/DEBUG" ] | 765 ldflags = [ "/DEBUG" ] |
766 } else { | 766 } else { |
767 cflags = [ | 767 cflags = [ |
768 "-g3", | 768 "-g3", |
769 "-ggdb3", | 769 "-ggdb3", |
770 ] | 770 ] |
771 } | 771 } |
772 } | 772 } |
OLD | NEW |