Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1150193002: GN: Add support for prebuilt instrumented libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698