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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 if (current_cpu == "x86") { | 125 if (current_cpu == "x86") { |
126 cflags += [ | 126 cflags += [ |
127 "/fallback", | 127 "/fallback", |
128 "-m32", | 128 "-m32", |
129 ] | 129 ] |
130 } else { | 130 } else { |
131 cflags += [ "-m64" ] | 131 cflags += [ "-m64" ] |
132 } | 132 } |
| 133 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == |
| 134 "True") { |
| 135 cflags += [ |
| 136 # cmd.exe doesn't understand ANSI escape codes by default, |
| 137 # so only enable them if something emulating them is around. |
| 138 "-fansi-escape-codes", |
| 139 ] |
| 140 } |
133 } | 141 } |
134 } else { | 142 } else { |
135 # Common GCC compiler flags setup. | 143 # Common GCC compiler flags setup. |
136 # -------------------------------- | 144 # -------------------------------- |
137 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 145 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
138 cflags_cc += [ | 146 cflags_cc += [ |
139 "-fno-threadsafe-statics", | 147 "-fno-threadsafe-statics", |
140 | 148 |
141 # Not exporting C++ inline functions can generally be applied anywhere | 149 # Not exporting C++ inline functions can generally be applied anywhere |
142 # so we do so here. Normal function visibility is controlled by | 150 # so we do so here. Normal function visibility is controlled by |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 cflags += [ "-gsplit-dwarf" ] | 1264 cflags += [ "-gsplit-dwarf" ] |
1257 } | 1265 } |
1258 } | 1266 } |
1259 } | 1267 } |
1260 | 1268 |
1261 config("no_symbols") { | 1269 config("no_symbols") { |
1262 if (!is_win) { | 1270 if (!is_win) { |
1263 cflags = [ "-g0" ] | 1271 cflags = [ "-g0" ] |
1264 } | 1272 } |
1265 } | 1273 } |
OLD | NEW |