| 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_overrides/build.gni") | 5 import("//build_overrides/build.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/clang/clang.gni") | 8 import("//build/config/clang/clang.gni") |
| 9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 # the ASAN runtime on iOS if building with Chromium clang. | 77 # the ASAN runtime on iOS if building with Chromium clang. |
| 78 if (is_win || is_mac || (is_ios && !use_xcode_clang)) { | 78 if (is_win || is_mac || (is_ios && !use_xcode_clang)) { |
| 79 data_deps = [ | 79 data_deps = [ |
| 80 ":copy_asan_runtime", | 80 ":copy_asan_runtime", |
| 81 ] | 81 ] |
| 82 } | 82 } |
| 83 if (is_mac || (is_ios && !use_xcode_clang)) { | 83 if (is_mac || (is_ios && !use_xcode_clang)) { |
| 84 public_deps += [ ":asan_runtime_bundle_data" ] | 84 public_deps += [ ":asan_runtime_bundle_data" ] |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 |
| 88 if (is_mac) { |
| 89 public_deps = [ "//buildtools/third_party/libc++:libc++_static" ] |
| 90 } |
| 87 } | 91 } |
| 88 | 92 |
| 89 if ((is_mac || is_win || (is_ios && !use_xcode_clang)) && using_sanitizer) { | 93 if ((is_mac || is_win || (is_ios && !use_xcode_clang)) && using_sanitizer) { |
| 90 if (is_mac) { | 94 if (is_mac) { |
| 91 _clang_rt_dso_path = "darwin/libclang_rt.asan_osx_dynamic.dylib" | 95 _clang_rt_dso_path = "darwin/libclang_rt.asan_osx_dynamic.dylib" |
| 92 } else if (is_ios) { | 96 } else if (is_ios) { |
| 93 _clang_rt_dso_path = "darwin/libclang_rt.asan_iossim_dynamic.dylib" | 97 _clang_rt_dso_path = "darwin/libclang_rt.asan_iossim_dynamic.dylib" |
| 94 } else if (is_win && target_cpu == "x86") { | 98 } else if (is_win && target_cpu == "x86") { |
| 95 _clang_rt_dso_path = "windows/clang_rt.asan_dynamic-i386.dll" | 99 _clang_rt_dso_path = "windows/clang_rt.asan_dynamic-i386.dll" |
| 96 } else if (is_win && target_cpu == "x64") { | 100 } else if (is_win && target_cpu == "x64") { |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 579 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
| 576 # if some third_party code is required to be compiled without rtti, which | 580 # if some third_party code is required to be compiled without rtti, which |
| 577 # is a requirement for ubsan_vptr. | 581 # is a requirement for ubsan_vptr. |
| 578 config("default_sanitizer_flags_but_ubsan_vptr") { | 582 config("default_sanitizer_flags_but_ubsan_vptr") { |
| 579 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 583 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
| 580 } | 584 } |
| 581 | 585 |
| 582 config("default_sanitizer_flags_but_coverage") { | 586 config("default_sanitizer_flags_but_coverage") { |
| 583 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 587 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
| 584 } | 588 } |
| OLD | NEW |