summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2019-11-25 17:33:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-25 17:33:35 +0000
commit8ed0cbc5627f5183df9783b19ff9f8d2c3e34467 (patch)
tree523de0742b51e6ab3265588c9fdaddd2101449d4 /Android.bp
parent16a30fcdd2e0abbb7d7e6ae90a19e9e8c191b896 (diff)
parent0560adabc34e19de3e72825ae2360dad3205d5a2 (diff)
downloadboringssl-8ed0cbc5627f5183df9783b19ff9f8d2c3e34467.tar.gz
Merge "Add a temporary hack to let BoringSSL build with a new compiler."
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 465ad42e..46a7dafc 100644
--- a/Android.bp
+++ b/Android.bp
@@ -99,6 +99,18 @@ cc_object {
],
linker_script: "src/crypto/fipsmodule/fips_shared.lds",
},
+ // Temporary hack to let BoringSSL build with a new compiler.
+ // This doesn't enable HWASAN unconditionally, it just causes
+ // BoringSSL's asm code to unconditionally use a HWASAN-compatible
+ // global variable reference so that the non-HWASANified (because of
+ // sanitize: { hwaddress: false } above) code in the BCM can
+ // successfully link against the HWASANified code in the rest of
+ // BoringSSL in HWASAN builds.
+ android_arm64: {
+ asflags: [
+ "-fsanitize=hwaddress",
+ ],
+ },
},
}