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 (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 | 9 |
10 # compiler --------------------------------------------------------------------- | 10 # compiler --------------------------------------------------------------------- |
(...skipping 18 matching lines...) Expand all Loading... |
29 # GCC flags, and then we handle the other non-Windows platforms specifically | 29 # GCC flags, and then we handle the other non-Windows platforms specifically |
30 # below. | 30 # below. |
31 if (is_win) { | 31 if (is_win) { |
32 # Windows compiler flags setup. | 32 # Windows compiler flags setup. |
33 # ----------------------------- | 33 # ----------------------------- |
34 cflags += [ | 34 cflags += [ |
35 "/Gy", # Enable function-level linking. | 35 "/Gy", # Enable function-level linking. |
36 "/GS", # Enable buffer security checking. | 36 "/GS", # Enable buffer security checking. |
37 "/EHsc", # Assume C functions can't throw exceptions and don't catch | 37 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
38 # structured exceptions (only C++ ones). | 38 # structured exceptions (only C++ ones). |
| 39 "/FS", # Preserve previous PDB behavior. |
39 ] | 40 ] |
40 } else { | 41 } else { |
41 # Common GCC compiler flags setup. | 42 # Common GCC compiler flags setup. |
42 # -------------------------------- | 43 # -------------------------------- |
43 cflags += [ | 44 cflags += [ |
44 "-fno-strict-aliasing", # See http://crbug.com/32204 | 45 "-fno-strict-aliasing", # See http://crbug.com/32204 |
45 "-fvisibility=hidden", | 46 "-fvisibility=hidden", |
46 ] | 47 ] |
47 cflags_cc += [ | 48 cflags_cc += [ |
48 "-fno-exceptions", | 49 "-fno-exceptions", |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 cflags = [ "-g1" ] | 673 cflags = [ "-g1" ] |
673 } | 674 } |
674 } | 675 } |
675 | 676 |
676 config("no_symbols") { | 677 config("no_symbols") { |
677 if (!is_win) { | 678 if (!is_win) { |
678 cflags = [ "-g0" ] | 679 cflags = [ "-g0" ] |
679 } | 680 } |
680 } | 681 } |
681 | 682 |
OLD | NEW |