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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ] | 63 ] |
64 | 64 |
65 # Stack protection. | 65 # Stack protection. |
66 if (is_mac) { | 66 if (is_mac) { |
67 cflags += [ "-fstack-protector-all" ] | 67 cflags += [ "-fstack-protector-all" ] |
68 } else if (is_linux) { | 68 } else if (is_linux) { |
69 cflags += [ "-fstack-protector", "--param=ssp-buffer-size=4" ] | 69 cflags += [ "-fstack-protector", "--param=ssp-buffer-size=4" ] |
70 } | 70 } |
71 | 71 |
72 # Linker warnings. | 72 # Linker warnings. |
73 if (!(is_chromeos && cpu_arch == "arm")) { | 73 if (!(is_chromeos && cpu_arch == "arm") && !is_mac) { |
74 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 | 74 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 |
75 ldflags += [ "-Wl,--fatal-warnings" ] | 75 ldflags += [ "-Wl,--fatal-warnings" ] |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 # Mac-specific compiler flags setup. | 79 # Mac-specific compiler flags setup. |
80 # ---------------------------------- | 80 # ---------------------------------- |
81 if (is_mac || is_ios) { | 81 if (is_mac || is_ios) { |
82 # These flags are shared between the C compiler and linker. | 82 # These flags are shared between the C compiler and linker. |
83 common_mac_flags = [] | 83 common_mac_flags = [] |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 } else { | 777 } else { |
778 cflags = [ "-g1" ] | 778 cflags = [ "-g1" ] |
779 } | 779 } |
780 } | 780 } |
781 | 781 |
782 config("no_symbols") { | 782 config("no_symbols") { |
783 if (!is_win) { | 783 if (!is_win) { |
784 cflags = [ "-g0" ] | 784 cflags = [ "-g0" ] |
785 } | 785 } |
786 } | 786 } |
OLD | NEW |