Chromium Code Reviews| 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 (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 760 # On Windows, turns up the optimization level. This implies whole program | 760 # On Windows, turns up the optimization level. This implies whole program |
| 761 # optimization and link-time code generation which is very expensive and should | 761 # optimization and link-time code generation which is very expensive and should |
| 762 # be used sparingly. For non-Windows, this is the same as "optimize". | 762 # be used sparingly. For non-Windows, this is the same as "optimize". |
| 763 config("optimize_max") { | 763 config("optimize_max") { |
| 764 cflags = common_optimize_on_cflags | 764 cflags = common_optimize_on_cflags |
| 765 ldflags = common_optimize_on_ldflags | 765 ldflags = common_optimize_on_ldflags |
| 766 if (is_win) { | 766 if (is_win) { |
| 767 cflags += [ | 767 cflags += [ |
| 768 "/Ot", # Favor speed over size. | 768 "/Ot", # Favor speed over size. |
| 769 "/GL", # Whole program optimization. | 769 "/GL", # Whole program optimization. |
| 770 "/wd4702", # Disable warning C4702 "unreachable code". | |
|
brettw
2014/06/11 16:33:09
Can you copy the comment from the .gypi file to ab
Sébastien Marchand
2014/06/11 17:24:56
Done.
| |
| 770 ] | 771 ] |
| 771 } else { | 772 } else { |
| 772 cflags += [ | 773 cflags += [ |
| 773 "-O2", | 774 "-O2", |
| 774 ] | 775 ] |
| 775 } | 776 } |
| 776 } | 777 } |
| 777 | 778 |
| 778 # Symbols ---------------------------------------------------------------------- | 779 # Symbols ---------------------------------------------------------------------- |
| 779 | 780 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 793 } else { | 794 } else { |
| 794 cflags = [ "-g1" ] | 795 cflags = [ "-g1" ] |
| 795 } | 796 } |
| 796 } | 797 } |
| 797 | 798 |
| 798 config("no_symbols") { | 799 config("no_symbols") { |
| 799 if (!is_win) { | 800 if (!is_win) { |
| 800 cflags = [ "-g0" ] | 801 cflags = [ "-g0" ] |
| 801 } | 802 } |
| 802 } | 803 } |
| OLD | NEW |