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

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

Issue 2188473002: [Mac/GN] Configure ASan for bundled targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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/clang/clang.gni") 7 import("//build/config/clang/clang.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 import("//build/toolchain/toolchain.gni") 9 import("//build/toolchain/toolchain.gni")
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 data_deps = [ 71 data_deps = [
72 ":copy_asan_runtime", 72 ":copy_asan_runtime",
73 ] 73 ]
74 } 74 }
75 } 75 }
76 } 76 }
77 77
78 if (is_mac && using_sanitizer) { 78 if (is_mac && using_sanitizer) {
79 copy("copy_asan_runtime") { 79 copy("copy_asan_runtime") {
80 sources = [ 80 sources = [
81 "$clang_base_path/lib/clang/$clang_version/lib/darwin/libclang_rt.asan_osx _dynamic.dylib", 81 "$clang_base_path/lib/clang/$clang_version/lib/darwin/$asan_runtime_basena me",
82 ] 82 ]
83 outputs = [ 83 outputs = [
84 "$root_out_dir/{{source_file_part}}", 84 "$root_out_dir/{{source_file_part}}",
85 ] 85 ]
86 } 86 }
87 } 87 }
88 88
89 config("sanitizer_options_link_helper") { 89 config("sanitizer_options_link_helper") {
90 if (is_mac) { 90 if (is_mac) {
91 ldflags = [ "-Wl,-U,_sanitizer_options_link_helper" ] 91 ldflags = [ "-Wl,-U,_sanitizer_options_link_helper" ]
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 # This allows to selectively disable ubsan_vptr, when needed. In particular, 432 # This allows to selectively disable ubsan_vptr, when needed. In particular,
433 # if some third_party code is required to be compiled without rtti, which 433 # if some third_party code is required to be compiled without rtti, which
434 # is a requirement for ubsan_vptr. 434 # is a requirement for ubsan_vptr.
435 config("default_sanitizer_flags_but_ubsan_vptr") { 435 config("default_sanitizer_flags_but_ubsan_vptr") {
436 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 436 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
437 } 437 }
438 438
439 config("default_sanitizer_flags_but_coverage") { 439 config("default_sanitizer_flags_but_coverage") {
440 configs = all_sanitizer_configs - [ ":coverage_flags" ] 440 configs = all_sanitizer_configs - [ ":coverage_flags" ]
441 } 441 }
OLDNEW
« no previous file with comments | « no previous file | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698