Index: src/trusted/debug_stub/BUILD.gn |
diff --git a/src/trusted/debug_stub/BUILD.gn b/src/trusted/debug_stub/BUILD.gn |
index 2594c1f235c2b035bedbf56604cc5e5f02da5231..c24839ce015bca6261c865f0424ed99f5700a322 100644 |
--- a/src/trusted/debug_stub/BUILD.gn |
+++ b/src/trusted/debug_stub/BUILD.gn |
@@ -1,6 +1,7 @@ |
# Copyright (c) 2014 The Native ClientAuthors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/sanitizers/sanitizers.gni") |
static_library("debug_stub") { |
sources = [ |
@@ -45,8 +46,12 @@ executable("gdb_rsp_unittest") { |
] |
deps = [ |
+ ":debug_stub", |
"//build/config/nacl:nacl_base", |
+ |
+ # All executables must have the sanitizer deps to properly link in |
+ # asan mode (this target will be empty in other cases). |
+ "//build/config/sanitizers:deps", |
"//build/win:default_exe_manifest", |
- ":debug_stub", |
] |
} |