From ba7a73dd61db639f42cc6283939f8b44cc4ecc6c Mon Sep 17 00:00:00 2001 From: brettw Date: Mon, 31 Aug 2015 15:17:39 -0700 Subject: Annotate GN executables and shared_libraries with sanitizer deps. These are needed to link in asan/lsan/etc. mode. GYP injects these automatically but GN doesn't have automatic dependency injection. All tests and components (which cover the vast majority of such targets in actual use) are templates which add these dependencies already, so most of the time it never comes up. Only a few of these changes are actually necessary to link all tests run on the asan bot (which is also what engineers will typically build, since almost nobody will build all in asan mode). But to reduce confusion from linker errors in asan mode, I annotated all executables and shared libraries I could find with the sanitizer dependency. I moved a config out of a target in yasm, and sorted a fews deps on other targets. TBR=xhwang@chromium.org (widevine) TBR=achuith@chromium.org (tools/perf, tools/telemetry) Review URL: https://codereview.chromium.org/1318343003 Cr-Commit-Position: refs/heads/master@{#346490} --- dbus/BUILD.gn | 1 + 1 file changed, 1 insertion(+) (limited to 'dbus') diff --git a/dbus/BUILD.gn b/dbus/BUILD.gn index a133e72..ee154a8 100644 --- a/dbus/BUILD.gn +++ b/dbus/BUILD.gn @@ -124,6 +124,7 @@ executable("dbus_test_server") { ":dbus", "//base", "//base/test:test_support", + "//build/config/sanitizers:deps", ] configs += [ "//build/config/linux:dbus" ] -- cgit v1.1