Disable asan for x86 build of libRSDriver
Bug: http://b/77445194
For asan on x86, rsdRuntimeStubs.cpp has undefined reference to
half-conversion routines (__gnu_h2f_ieee, __gnu_f2h_ieee). This happens
only when asan is enabled. There shouldn't be any need for a conversion
here, as the function just passes through the 16-bit version of the
half. Disabling asan until we can investigate and submit a fix upstream.
Test: make PRODUCT-aosp_x86-userdebug && \
make PRODUCT-aosp_x86-userdebug SANITIZE_TARGET='address'
Change-Id: Ic4f0da15fcc6d72f49b22520223935452d4873d6
diff --git a/Android.bp b/Android.bp
index 0877752..45d512b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -73,6 +73,17 @@
enabled: false,
},
},
+
+ // Bug: http://b/77445194 - Disable x86 asan where rsdRuntimeStubs.cpp has
+ // undefined reference to half-conversion routines (__gnu_h2f_ieee,
+ // __gnu_f2h_ieee).
+ arch: {
+ x86: {
+ sanitize: {
+ never: true,
+ },
+ },
+ },
}
// Build rsg-generator ====================