| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |