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 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 # //build/config/gcc:symbol_visibility_hidden. | 156 # //build/config/gcc:symbol_visibility_hidden. |
| 157 "-fvisibility-inlines-hidden", | 157 "-fvisibility-inlines-hidden", |
| 158 ] | 158 ] |
| 159 | 159 |
| 160 # Stack protection. | 160 # Stack protection. |
| 161 if (is_mac) { | 161 if (is_mac) { |
| 162 cflags += [ "-fstack-protector-all" ] | 162 cflags += [ "-fstack-protector-all" ] |
| 163 } else if (is_posix && !is_chromeos && !is_nacl) { | 163 } else if (is_posix && !is_chromeos && !is_nacl) { |
| 164 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc supports it. | 164 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc supports it. |
| 165 cflags += [ "--param=ssp-buffer-size=4" ] | 165 cflags += [ "--param=ssp-buffer-size=4" ] |
| 166 if (is_android && (current_cpu == "arm64" || current_cpu == "x86")) { | 166 if (is_android && current_cpu == "x86") { |
|
agrieve
2016/02/04 02:15:47
Hmm, yeah, i got nothing :(.
Could you also add t
| |
| 167 cflags += [ "-fno-stack-protector" ] | 167 cflags += [ "-fno-stack-protector" ] |
| 168 } else { | 168 } else { |
| 169 cflags += [ "-fstack-protector" ] | 169 cflags += [ "-fstack-protector" ] |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 # Linker warnings. | 173 # Linker warnings. |
| 174 if (!(is_chromeos && current_cpu == "arm") && | 174 if (!(is_chromeos && current_cpu == "arm") && |
| 175 !(is_android && use_order_profiling) && !is_mac && !is_ios) { | 175 !(is_android && use_order_profiling) && !is_mac && !is_ios) { |
| 176 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 | 176 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1295 if (symbol_level == 0) { | 1295 if (symbol_level == 0) { |
| 1296 configs = [ ":no_symbols" ] | 1296 configs = [ ":no_symbols" ] |
| 1297 } else if (symbol_level == 1) { | 1297 } else if (symbol_level == 1) { |
| 1298 configs = [ ":minimal_symbols" ] | 1298 configs = [ ":minimal_symbols" ] |
| 1299 } else if (symbol_level == 2) { | 1299 } else if (symbol_level == 2) { |
| 1300 configs = [ ":symbols" ] | 1300 configs = [ ":symbols" ] |
| 1301 } else { | 1301 } else { |
| 1302 assert(false) | 1302 assert(false) |
| 1303 } | 1303 } |
| 1304 } | 1304 } |
| OLD | NEW |