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

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

Issue 1948873002: [sanitizers] do not add -lclang_rt on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 7 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 | no next file » | 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 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 cflags += [ 180 cflags += [
181 "-mllvm", 181 "-mllvm",
182 "-asan-globals=0", 182 "-asan-globals=0",
183 ] 183 ]
184 } else if (is_mac) { 184 } else if (is_mac) {
185 # http://crbug.com/352073 185 # http://crbug.com/352073
186 cflags += [ 186 cflags += [
187 "-mllvm", 187 "-mllvm",
188 "-asan-globals=0", 188 "-asan-globals=0",
189 ] 189 ]
190 libs = [ "clang_rt.asan_osx_dynamic" ]
191
192 # TODO(GYP): deal with mac_bundles. 190 # TODO(GYP): deal with mac_bundles.
193 } else if (is_win) { 191 } else if (is_win) {
194 assert(target_cpu == "x86", "WinASan is 32-bit only currently") 192 assert(target_cpu == "x86", "WinASan is 32-bit only currently")
195 if (is_component_build) { 193 if (is_component_build) {
196 libs = [ 194 libs = [
197 "clang_rt.asan_dynamic-i386.lib", 195 "clang_rt.asan_dynamic-i386.lib",
198 "clang_rt.asan_dynamic_runtime_thunk-i386.lib", 196 "clang_rt.asan_dynamic_runtime_thunk-i386.lib",
199 ] 197 ]
200 } else { 198 } else {
201 # TODO(rnk): DLLs in the non-component build should link against 199 # TODO(rnk): DLLs in the non-component build should link against
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 # This allows to selectively disable ubsan_vptr, when needed. In particular, 382 # This allows to selectively disable ubsan_vptr, when needed. In particular,
385 # if some third_party code is required to be compiled without rtti, which 383 # if some third_party code is required to be compiled without rtti, which
386 # is a requirement for ubsan_vptr. 384 # is a requirement for ubsan_vptr.
387 config("default_sanitizer_flags_but_ubsan_vptr") { 385 config("default_sanitizer_flags_but_ubsan_vptr") {
388 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] 386 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ]
389 } 387 }
390 388
391 config("default_sanitizer_flags_but_coverage") { 389 config("default_sanitizer_flags_but_coverage") {
392 configs = all_sanitizer_configs - [ ":coverage_flags" ] 390 configs = all_sanitizer_configs - [ ":coverage_flags" ]
393 } 391 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698