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 if (current_cpu == "arm") { | 6 if (current_cpu == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 cflags += [ | 319 cflags += [ |
320 "-mips64r2", | 320 "-mips64r2", |
321 "-Wa,-mips64r2", | 321 "-Wa,-mips64r2", |
322 ] | 322 ] |
323 ldflags += [ "-mips64r2" ] | 323 ldflags += [ "-mips64r2" ] |
324 } | 324 } |
325 } | 325 } |
326 | 326 |
327 defines += [ "_FILE_OFFSET_BITS=64" ] | 327 defines += [ "_FILE_OFFSET_BITS=64" ] |
328 | 328 |
| 329 if (!is_android) { |
| 330 defines += [ |
| 331 "_LARGEFILE_SOURCE", |
| 332 "_LARGEFILE64_SOURCE", |
| 333 ] |
| 334 } |
| 335 |
329 # Omit unwind support in official builds to save space. We can use breakpad | 336 # Omit unwind support in official builds to save space. We can use breakpad |
330 # for these builds. | 337 # for these builds. |
331 if (is_chrome_branded && is_official_build) { | 338 if (is_chrome_branded && is_official_build) { |
332 cflags += [ | 339 cflags += [ |
333 "-fno-unwind-tables", | 340 "-fno-unwind-tables", |
334 "-fno-asynchronous-unwind-tables", | 341 "-fno-asynchronous-unwind-tables", |
335 ] | 342 ] |
336 } else { | 343 } else { |
337 cflags += [ "-funwind-tables" ] | 344 cflags += [ "-funwind-tables" ] |
338 } | 345 } |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 cflags += [ "-gsplit-dwarf" ] | 1081 cflags += [ "-gsplit-dwarf" ] |
1075 } | 1082 } |
1076 } | 1083 } |
1077 } | 1084 } |
1078 | 1085 |
1079 config("no_symbols") { | 1086 config("no_symbols") { |
1080 if (!is_win) { | 1087 if (!is_win) { |
1081 cflags = [ "-g0" ] | 1088 cflags = [ "-g0" ] |
1082 } | 1089 } |
1083 } | 1090 } |
OLD | NEW |