| 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 data += [ "$root_out_dir/libc++.so" ] | 63 data += [ "$root_out_dir/libc++.so" ] |
| 64 } | 64 } |
| 65 if (is_mac) { | 65 if (is_mac) { |
| 66 data_deps = [ | 66 data_deps = [ |
| 67 ":copy_asan_runtime", | 67 ":copy_asan_runtime", |
| 68 ] | 68 ] |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 | 72 |
| 73 if (is_mac) { | 73 if (is_mac && using_sanitizer) { |
| 74 copy("copy_asan_runtime") { | 74 copy("copy_asan_runtime") { |
| 75 sources = [ | 75 sources = [ |
| 76 "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_version/lib/dar
win/libclang_rt.asan_osx_dynamic.dylib", | 76 "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_version/lib/dar
win/libclang_rt.asan_osx_dynamic.dylib", |
| 77 ] | 77 ] |
| 78 outputs = [ | 78 outputs = [ |
| 79 "$root_out_dir/{{source_file_part}}", | 79 "$root_out_dir/{{source_file_part}}", |
| 80 ] | 80 ] |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 429 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
| 430 # if some third_party code is required to be compiled without rtti, which | 430 # if some third_party code is required to be compiled without rtti, which |
| 431 # is a requirement for ubsan_vptr. | 431 # is a requirement for ubsan_vptr. |
| 432 config("default_sanitizer_flags_but_ubsan_vptr") { | 432 config("default_sanitizer_flags_but_ubsan_vptr") { |
| 433 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 433 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
| 434 } | 434 } |
| 435 | 435 |
| 436 config("default_sanitizer_flags_but_coverage") { | 436 config("default_sanitizer_flags_but_coverage") { |
| 437 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 437 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
| 438 } | 438 } |
| OLD | NEW |