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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == | 137 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == |
138 "True") { | 138 "True") { |
139 cflags += [ | 139 cflags += [ |
140 # cmd.exe doesn't understand ANSI escape codes by default, | 140 # cmd.exe doesn't understand ANSI escape codes by default, |
141 # so only enable them if something emulating them is around. | 141 # so only enable them if something emulating them is around. |
142 "-fansi-escape-codes", | 142 "-fansi-escape-codes", |
143 ] | 143 ] |
144 } | 144 } |
145 } | 145 } |
| 146 |
| 147 if (is_syzyasan) { |
| 148 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
| 149 ldflags += [ "/PROFILE" ] |
| 150 } |
146 } else { | 151 } else { |
147 # Common GCC compiler flags setup. | 152 # Common GCC compiler flags setup. |
148 # -------------------------------- | 153 # -------------------------------- |
149 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 154 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
150 cflags_cc += [ | 155 cflags_cc += [ |
151 "-fno-threadsafe-statics", | 156 "-fno-threadsafe-statics", |
152 | 157 |
153 # Not exporting C++ inline functions can generally be applied anywhere | 158 # Not exporting C++ inline functions can generally be applied anywhere |
154 # so we do so here. Normal function visibility is controlled by | 159 # so we do so here. Normal function visibility is controlled by |
155 # //build/config/gcc:symbol_visibility_hidden. | 160 # //build/config/gcc:symbol_visibility_hidden. |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 cflags += [ "-gsplit-dwarf" ] | 1264 cflags += [ "-gsplit-dwarf" ] |
1260 } | 1265 } |
1261 } | 1266 } |
1262 } | 1267 } |
1263 | 1268 |
1264 config("no_symbols") { | 1269 config("no_symbols") { |
1265 if (!is_win) { | 1270 if (!is_win) { |
1266 cflags = [ "-g0" ] | 1271 cflags = [ "-g0" ] |
1267 } | 1272 } |
1268 } | 1273 } |
OLD | NEW |