Add support for sanitizer property
Add a new feature to cc modules that adds the cflags and libraries
necessary to implement AddressSanitizer, ThreadSanitizer, and
UndefinedBehaviorSanitizer.
Change-Id: Ibe5ffadc7ece56080a2521f2c7c00da9ef712584
diff --git a/cc/x86_device.go b/cc/x86_device.go
index 92cae92..6b90f17 100644
--- a/cc/x86_device.go
+++ b/cc/x86_device.go
@@ -236,6 +236,10 @@
return "${x86Ldflags}"
}
+func (toolchainX86) AddressSanitizerRuntimeLibrary() string {
+ return "libclang_rt.asan-i686-android.so"
+}
+
func x86ToolchainFactory(arch common.Arch) Toolchain {
toolchainCflags := []string{
"${x86ToolchainCflags}",