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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 # http://gcc.gnu.org/wiki/DebugFission | 50 # http://gcc.gnu.org/wiki/DebugFission |
51 use_debug_fission = | 51 use_debug_fission = |
52 !is_win && use_gold && linux_use_bundled_binutils && !use_ccache | 52 !is_win && use_gold && linux_use_bundled_binutils && !use_ccache |
53 | 53 |
54 if (is_win) { | 54 if (is_win) { |
55 # Whether the VS xtree header has been patched to disable warning 4702. If | 55 # Whether the VS xtree header has been patched to disable warning 4702. If |
56 # it has, then we don't need to disable 4702 (unreachable code warning). | 56 # it has, then we don't need to disable 4702 (unreachable code warning). |
57 # The patch is preapplied to the internal toolchain and hence all bots. | 57 # The patch is preapplied to the internal toolchain and hence all bots. |
58 msvs_xtree_patched = false | 58 msvs_xtree_patched = false |
59 } | 59 } |
60 | |
61 # Track where uninitialized memory originates from. From fastest to slowest: | |
62 # 0 - no tracking, 1 - track only the initial allocation site, 2 - track the | |
63 # chain of stores leading from allocation site to use site. | |
64 msan_track_origins = 2 | |
65 } | 60 } |
66 | 61 |
67 # default_include_dirs --------------------------------------------------------- | 62 # default_include_dirs --------------------------------------------------------- |
68 # | 63 # |
69 # This is a separate config so that third_party code (which would not use the | 64 # This is a separate config so that third_party code (which would not use the |
70 # source root and might have conflicting versions of some headers) can remove | 65 # source root and might have conflicting versions of some headers) can remove |
71 # this and specify their own include paths. | 66 # this and specify their own include paths. |
72 config("default_include_dirs") { | 67 config("default_include_dirs") { |
73 include_dirs = [ | 68 include_dirs = [ |
74 "//", | 69 "//", |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ] | 163 ] |
169 } | 164 } |
170 if (is_msan) { | 165 if (is_msan) { |
171 msan_blacklist_path = | 166 msan_blacklist_path = |
172 rebase_path("//tools/msan/blacklist.txt", root_build_dir) | 167 rebase_path("//tools/msan/blacklist.txt", root_build_dir) |
173 cflags += [ | 168 cflags += [ |
174 "-fsanitize=memory", | 169 "-fsanitize=memory", |
175 "-fsanitize-memory-track-origins=$msan_track_origins", | 170 "-fsanitize-memory-track-origins=$msan_track_origins", |
176 "-fsanitize-blacklist=$msan_blacklist_path", | 171 "-fsanitize-blacklist=$msan_blacklist_path", |
177 ] | 172 ] |
178 | |
179 # TODO(GYP): Support instrumented libraries. | |
180 } | 173 } |
181 | 174 |
182 if (use_custom_libcxx) { | 175 if (use_custom_libcxx) { |
183 cflags_cc += [ "-nostdinc++" ] | 176 cflags_cc += [ "-nostdinc++" ] |
184 include_dirs = [ | 177 include_dirs = [ |
185 "//buildtools/third_party/libc++/trunk/include", | 178 "//buildtools/third_party/libc++/trunk/include", |
186 "//buildtools/third_party/libc++abi/trunk/include", | 179 "//buildtools/third_party/libc++abi/trunk/include", |
187 ] | 180 ] |
188 } | 181 } |
189 } | 182 } |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 cflags += [ "-gsplit-dwarf" ] | 1165 cflags += [ "-gsplit-dwarf" ] |
1173 } | 1166 } |
1174 } | 1167 } |
1175 } | 1168 } |
1176 | 1169 |
1177 config("no_symbols") { | 1170 config("no_symbols") { |
1178 if (!is_win) { | 1171 if (!is_win) { |
1179 cflags = [ "-g0" ] | 1172 cflags = [ "-g0" ] |
1180 } | 1173 } |
1181 } | 1174 } |
OLD | NEW |