Index: base/base.gyp |
diff --git a/base/base.gyp b/base/base.gyp |
index d7c638e616b6d93296a328fcd5d68820a4eb1d55..e3c9dd1fa5bcccac716459f60f443016a7a9b9c3 100644 |
--- a/base/base.gyp |
+++ b/base/base.gyp |
@@ -1014,6 +1014,31 @@ |
}], |
], |
}, |
+ { |
+ 'target_name': 'sanitizer_options', |
+ 'type': 'static_library', |
+ 'variables': { |
+ # Every target is going to depend on sanitizer_options, so allow |
+ # this one to depend on itself. |
+ 'prune_self_dependency': 1, |
+ # Do not let 'none' targets depend on this one, they don't need to. |
+ 'link_dependency': 1, |
+ }, |
+ 'sources': [ |
+ 'debug/sanitizer_options.cc', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ 'cflags!': [ |
+ '-fsanitize=address', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'ldflags': [ |
+ '-Wl,-u_sanitizer_options_link_helper', |
+ ], |
+ }, |
+ }, |
], |
'conditions': [ |
['OS!="ios"', { |