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

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

Issue 1839753003: [libfuzzer] tweaking is_ubsan_security options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding define Created 4 years, 8 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 | « build/config/BUILD.gn ('k') | 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 if (is_lsan) { 85 if (is_lsan) {
86 ldflags += [ "-fsanitize=leak" ] 86 ldflags += [ "-fsanitize=leak" ]
87 } 87 }
88 if (is_tsan) { 88 if (is_tsan) {
89 ldflags += [ "-fsanitize=thread" ] 89 ldflags += [ "-fsanitize=thread" ]
90 } 90 }
91 if (is_msan) { 91 if (is_msan) {
92 ldflags += [ "-fsanitize=memory" ] 92 ldflags += [ "-fsanitize=memory" ]
93 } 93 }
94 if (is_ubsan) { 94 if (is_ubsan || is_ubsan_security) {
95 ldflags += [ "-fsanitize=undefined" ] 95 ldflags += [ "-fsanitize=undefined" ]
96 } 96 }
97 if (is_ubsan_vptr) { 97 if (is_ubsan_vptr) {
98 ldflags += [ "-fsanitize=vptr" ] 98 ldflags += [ "-fsanitize=vptr" ]
99 } 99 }
100 if (is_lto && !is_nacl) { 100 if (is_lto && !is_nacl) {
101 ldflags += [ "-flto" ] 101 ldflags += [ "-flto" ]
102 102
103 # Apply a lower LTO optimization level as the default is too slow. 103 # Apply a lower LTO optimization level as the default is too slow.
104 if (is_linux) { 104 if (is_linux) {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 sources = [ 322 sources = [
323 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.asan_osx_dynamic.dylib", 323 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.asan_osx_dynamic.dylib",
324 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.tsan_osx_dynamic.dylib", 324 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.tsan_osx_dynamic.dylib",
325 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.ubsan_osx_dynamic.dylib", 325 "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_ rt.ubsan_osx_dynamic.dylib",
326 ] 326 ]
327 outputs = [ 327 outputs = [
328 "$root_build_dir/{{source_file_part}}", 328 "$root_build_dir/{{source_file_part}}",
329 ] 329 ]
330 } 330 }
331 } 331 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698