diff options
author | Hidehiko Abe <hidehiko@chromium.org> | 2019-06-03 00:31:12 +0900 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-06-03 06:23:05 -0700 |
commit | 9887bc9626824394a2565e302a259d8fc89538c0 (patch) | |
tree | 0b5cd67ef91e6fd729f12a490dd42108c60d87f1 /BUILD.gn | |
parent | c15bc7384134e1c573fe32efdbeef189c71d9ff7 (diff) | |
download | platform_external_libchrome-9887bc9626824394a2565e302a259d8fc89538c0.tar.gz platform_external_libchrome-9887bc9626824394a2565e302a259d8fc89538c0.tar.bz2 platform_external_libchrome-9887bc9626824394a2565e302a259d8fc89538c0.zip |
libchrome: Add LEAK_SANITIZER for ASAN build.
BUG=chromium:964489
TEST=Ran cros_run_unit_tests --pacakges crash-reporter locally.
Change-Id: I8f7661b9ad5c3d78bbfc67528d2997a7452f1e58
Reviewed-on: https://chromium-review.googlesource.com/1640428
Commit-Ready: Hidehiko Abe <hidehiko@chromium.org>
Tested-by: Hidehiko Abe <hidehiko@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -24,6 +24,10 @@ config("libchrome_config") { "NO_TCMALLOC", "MOJO_EDK_LEGACY_PROTOCOL", ] + if (use.asan) { + defines += [ "LEAK_SANITIZER" ] + } + include_dirs = [ "." ] cflags = [ "-Wno-deprecated-register", @@ -469,6 +473,10 @@ libchrome_exported_cflags = [ "-DBASE_VER=${libbase_ver}", ] +if (use.asan) { + libchrome_exported_cflags += [ "-DLEAK_SANITIZER" ] +} + generate_pkg_config("libchrome") { deps = [ ":base" ] output_name = "libchrome-${libbase_ver}" |