| 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("../android/config.gni") | 5 import("../android/config.gni") |
| 6 import("//native_client/build/config/chrome_build.gni") | 6 import("//native_client/build/config/chrome_build.gni") |
| 7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("../arm.gni") | 8 import("../arm.gni") |
| 9 } | 9 } |
| 10 if (is_posix) { | 10 if (is_posix) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (is_mac) { | 71 if (is_mac) { |
| 72 cflags += [ "-fstack-protector-all" ] | 72 cflags += [ "-fstack-protector-all" ] |
| 73 } else if (is_linux) { | 73 } else if (is_linux) { |
| 74 cflags += [ | 74 cflags += [ |
| 75 "-fstack-protector", | 75 "-fstack-protector", |
| 76 "--param=ssp-buffer-size=4", | 76 "--param=ssp-buffer-size=4", |
| 77 ] | 77 ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 # Linker warnings. | 80 # Linker warnings. |
| 81 if (!(is_chromeos && current_cpu == "arm") && !is_mac) { | 81 if (!(is_chromeos_ui && current_cpu == "arm") && !is_mac) { |
| 82 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 | 82 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 |
| 83 ldflags += [ "-Wl,--fatal-warnings" ] | 83 ldflags += [ "-Wl,--fatal-warnings" ] |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 # Mac-specific compiler flags setup. | 87 # Mac-specific compiler flags setup. |
| 88 # ---------------------------------- | 88 # ---------------------------------- |
| 89 if (is_mac || is_ios) { | 89 if (is_mac || is_ios) { |
| 90 # These flags are shared between the C compiler and linker. | 90 # These flags are shared between the C compiler and linker. |
| 91 common_mac_flags = [] | 91 common_mac_flags = [] |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 } else { | 807 } else { |
| 808 cflags = [ "-g1" ] | 808 cflags = [ "-g1" ] |
| 809 } | 809 } |
| 810 } | 810 } |
| 811 | 811 |
| 812 config("no_symbols") { | 812 config("no_symbols") { |
| 813 if (!is_win) { | 813 if (!is_win) { |
| 814 cflags = [ "-g0" ] | 814 cflags = [ "-g0" ] |
| 815 } | 815 } |
| 816 } | 816 } |
| OLD | NEW |