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 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 "/Gy", # Enable function-level linking. | 73 "/Gy", # Enable function-level linking. |
74 "/GS", # Enable buffer security checking. | 74 "/GS", # Enable buffer security checking. |
75 "/FS", # Preserve previous PDB behavior. | 75 "/FS", # Preserve previous PDB behavior. |
76 ] | 76 ] |
77 if (is_component_build) { | 77 if (is_component_build) { |
78 cflags += [ | 78 cflags += [ |
79 "/EHsc", # Assume C functions can't throw exceptions and don't catch | 79 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
80 # structured exceptions (only C++ ones). | 80 # structured exceptions (only C++ ones). |
81 ] | 81 ] |
82 } | 82 } |
83 if (using_sanitizer) { | |
84 # Avoid error. | |
85 } | |
86 } else { | 83 } else { |
87 # Common GCC compiler flags setup. | 84 # Common GCC compiler flags setup. |
88 # -------------------------------- | 85 # -------------------------------- |
89 cflags += [ | 86 cflags += [ |
90 "-fno-strict-aliasing", # See http://crbug.com/32204 | 87 "-fno-strict-aliasing", # See http://crbug.com/32204 |
91 ] | 88 ] |
92 cflags_cc += [ | 89 cflags_cc += [ |
93 "-fno-threadsafe-statics", | 90 "-fno-threadsafe-statics", |
94 # Not exporting C++ inline functions can generally be applied anywhere | 91 # Not exporting C++ inline functions can generally be applied anywhere |
95 # so we do so here. Normal function visibility is controlled by | 92 # so we do so here. Normal function visibility is controlled by |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 cflags += [ "-gsplit-dwarf" ] | 952 cflags += [ "-gsplit-dwarf" ] |
956 } | 953 } |
957 } | 954 } |
958 } | 955 } |
959 | 956 |
960 config("no_symbols") { | 957 config("no_symbols") { |
961 if (!is_win) { | 958 if (!is_win) { |
962 cflags = [ "-g0" ] | 959 cflags = [ "-g0" ] |
963 } | 960 } |
964 } | 961 } |
OLD | NEW |