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

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

Issue 2041433002: 💱 target_cpu -> current_cpu in build/config/sanitizers/BUILD.gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@monochrome
Patch Set: Created 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/toolchain/toolchain.gni") 8 import("//build/toolchain/toolchain.gni")
9 9
10 # Contains the dependencies needed for sanitizers to link into executables and 10 # Contains the dependencies needed for sanitizers to link into executables and
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 "-asan-globals=0", 206 "-asan-globals=0",
207 ] 207 ]
208 } else if (is_mac) { 208 } else if (is_mac) {
209 # http://crbug.com/352073 209 # http://crbug.com/352073
210 cflags += [ 210 cflags += [
211 "-mllvm", 211 "-mllvm",
212 "-asan-globals=0", 212 "-asan-globals=0",
213 ] 213 ]
214 # TODO(GYP): deal with mac_bundles. 214 # TODO(GYP): deal with mac_bundles.
215 } else if (is_win) { 215 } else if (is_win) {
216 assert(target_cpu == "x86", "WinASan is 32-bit only currently") 216 assert(current_cpu == "x86", "WinASan is 32-bit only currently")
217 if (is_component_build) { 217 if (is_component_build) {
218 libs = [ 218 libs = [
219 "clang_rt.asan_dynamic-i386.lib", 219 "clang_rt.asan_dynamic-i386.lib",
220 "clang_rt.asan_dynamic_runtime_thunk-i386.lib", 220 "clang_rt.asan_dynamic_runtime_thunk-i386.lib",
221 ] 221 ]
222 } else { 222 } else {
223 # TODO(rnk): DLLs in the non-component build should link against 223 # TODO(rnk): DLLs in the non-component build should link against
224 # clang_rt.asan_dll_thunk-i386.lib instead. 224 # clang_rt.asan_dll_thunk-i386.lib instead.
225 libs = [ "clang_rt.asan-i386.lib" ] 225 libs = [ "clang_rt.asan-i386.lib" ]
226 } 226 }
(...skipping 30 matching lines...) Expand all
257 257
258 config("coverage_flags") { 258 config("coverage_flags") {
259 cflags = [] 259 cflags = []
260 260
261 if (use_sanitizer_coverage) { 261 if (use_sanitizer_coverage) {
262 cflags += [ 262 cflags += [
263 "-fsanitize-coverage=$sanitizer_coverage_flags", 263 "-fsanitize-coverage=$sanitizer_coverage_flags",
264 "-mllvm", 264 "-mllvm",
265 "-sanitizer-coverage-prune-blocks=1", 265 "-sanitizer-coverage-prune-blocks=1",
266 ] 266 ]
267 if (target_cpu == "arm") { 267 if (current_cpu == "arm") {
268 # http://crbug.com/517105 268 # http://crbug.com/517105
269 cflags += [ 269 cflags += [
270 "-mllvm", 270 "-mllvm",
271 "-sanitizer-coverage-block-threshold=0", 271 "-sanitizer-coverage-block-threshold=0",
272 ] 272 ]
273 } 273 }
274 defines = [ "SANITIZER_COVERAGE" ] 274 defines = [ "SANITIZER_COVERAGE" ]
275 } 275 }
276 } 276 }
277 277
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 # This allows to selectively disable ubsan_vptr, when needed. In particular, 413 # This allows to selectively disable ubsan_vptr, when needed. In particular,
414 # if some third_party code is required to be compiled without rtti, which 414 # if some third_party code is required to be compiled without rtti, which
415 # is a requirement for ubsan_vptr. 415 # is a requirement for ubsan_vptr.
416 config("default_sanitizer_flags_but_ubsan_vptr") { 416 config("default_sanitizer_flags_but_ubsan_vptr") {
417 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 417 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
418 } 418 }
419 419
420 config("default_sanitizer_flags_but_coverage") { 420 config("default_sanitizer_flags_but_coverage") {
421 configs = all_sanitizer_configs - [ ":coverage_flags" ] 421 configs = all_sanitizer_configs - [ ":coverage_flags" ]
422 } 422 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698