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 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 cflags = [] | 78 cflags = [] |
79 cflags_c = [] | 79 cflags_c = [] |
80 cflags_cc = [] | 80 cflags_cc = [] |
81 ldflags = [] | 81 ldflags = [] |
82 defines = [] | 82 defines = [] |
83 | 83 |
84 # Common GCC compiler flags setup. | 84 # Common GCC compiler flags setup. |
85 # -------------------------------- | 85 # -------------------------------- |
86 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 86 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
87 cflags_cc += [ | 87 cflags_cc += [ |
88 "-fno-threadsafe-statics", | |
89 | |
90 # Not exporting C++ inline functions can generally be applied anywhere | 88 # Not exporting C++ inline functions can generally be applied anywhere |
91 # so we do so here. Normal function visibility is controlled by | 89 # so we do so here. Normal function visibility is controlled by |
92 # //build/config/gcc:symbol_visibility_hidden. | 90 # //build/config/gcc:symbol_visibility_hidden. |
93 "-fvisibility-inlines-hidden", | 91 "-fvisibility-inlines-hidden", |
94 ] | 92 ] |
95 | 93 |
96 # Stack protection. | 94 # Stack protection. |
97 if (is_mac) { | 95 if (is_mac) { |
98 cflags += [ "-fstack-protector-all" ] | 96 cflags += [ "-fstack-protector-all" ] |
99 } else if (is_linux) { | 97 } else if (is_linux) { |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 if (symbol_level == 0) { | 1117 if (symbol_level == 0) { |
1120 configs = [ ":no_symbols" ] | 1118 configs = [ ":no_symbols" ] |
1121 } else if (symbol_level == 1) { | 1119 } else if (symbol_level == 1) { |
1122 configs = [ ":minimal_symbols" ] | 1120 configs = [ ":minimal_symbols" ] |
1123 } else if (symbol_level == 2) { | 1121 } else if (symbol_level == 2) { |
1124 configs = [ ":symbols" ] | 1122 configs = [ ":symbols" ] |
1125 } else { | 1123 } else { |
1126 assert(false) | 1124 assert(false) |
1127 } | 1125 } |
1128 } | 1126 } |
OLD | NEW |