Index: base/base.gyp |
diff --git a/base/base.gyp b/base/base.gyp |
index 0663b2704b57a655d0028ac0b4ef3d1bbf8504f7..0e3e2654d881553d95e5e9436592e08f215040f9 100644 |
--- a/base/base.gyp |
+++ b/base/base.gyp |
@@ -986,6 +986,32 @@ |
}], |
], |
}, |
+ { |
+ 'target_name': 'sanitizer_options', |
+ 'type': 'static_library', |
+ 'toolsets': ['host', 'target'], |
+ '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"', { |