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

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

Issue 1832213002: [libfuzzer] separate libfuzzer ubsan configuration and ubsan build config setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 9 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/sanitizers.gni » ('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 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 8
9 # Contains the dependencies needed for sanitizers to link into executables and 9 # Contains the dependencies needed for sanitizers to link into executables and
10 # shared_libraries. Unconditionally depend upon this target as it is empty if 10 # shared_libraries. Unconditionally depend upon this target as it is empty if
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 } 240 }
241 if (is_ubsan_vptr) { 241 if (is_ubsan_vptr) {
242 ubsan_vptr_blacklist_path = 242 ubsan_vptr_blacklist_path =
243 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) 243 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir)
244 cflags += [ 244 cflags += [
245 "-fsanitize=vptr", 245 "-fsanitize=vptr",
246 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", 246 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path",
247 ] 247 ]
248 } 248 }
249 if (is_ubsan_security) {
250 ubsan_blacklist_path =
251 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir)
252 cflags += [
253 "-fsanitize=signed-integer-overflow",
254 "-fsanitize-blacklist=$ubsan_blacklist_path",
255 ]
256 }
249 if (is_lto && !is_nacl) { 257 if (is_lto && !is_nacl) {
250 cflags += [ "-flto" ] 258 cflags += [ "-flto" ]
251 259
252 if (is_cfi) { 260 if (is_cfi) {
253 cfi_blacklist_path = 261 cfi_blacklist_path =
254 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) 262 rebase_path("//tools/cfi/blacklist.txt", root_build_dir)
255 cflags += [ 263 cflags += [
256 "-fsanitize=cfi-vcall", 264 "-fsanitize=cfi-vcall",
257 "-fsanitize=cfi-derived-cast", 265 "-fsanitize=cfi-derived-cast",
258 "-fsanitize=cfi-unrelated-cast", 266 "-fsanitize=cfi-unrelated-cast",
(...skipping 28 matching lines...) Expand all
287 } 295 }
288 296
289 config("default_sanitizer_coverage_flags") { 297 config("default_sanitizer_coverage_flags") {
290 cflags = [] 298 cflags = []
291 299
292 if (use_sanitizer_coverage) { 300 if (use_sanitizer_coverage) {
293 # FIXME: make this configurable. 301 # FIXME: make this configurable.
294 cflags += [ "-fsanitize-coverage=edge,indirect-calls,8bit-counters" ] 302 cflags += [ "-fsanitize-coverage=edge,indirect-calls,8bit-counters" ]
295 } 303 }
296 } 304 }
OLDNEW
« no previous file with comments | « no previous file | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698