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

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

Issue 2079283002: [iOS/GN] Allow compilation with system clang. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/ios/BUILD.gn ('k') | build/toolchain/mac/BUILD.gn » ('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 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
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
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 }
OLDNEW
« no previous file with comments | « build/config/ios/BUILD.gn ('k') | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698