[PATCH] D71772: [scudo][standalone] Support __BIONIC__

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 08:29:27 PST 2019


cryptoad created this revision.
cryptoad added reviewers: cferris, hctim, pcc, eugenis, morehouse.
Herald added subscribers: Sanitizers, krytarowski.
Herald added projects: Sanitizers, LLVM.

Some Android builds that we are interested in define `__BIONIC__`
but not `__ANDROID__`, so expand `SCUDO_ANDROID` to encompass those.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71772

Files:
  compiler-rt/lib/scudo/standalone/platform.h


Index: compiler-rt/lib/scudo/standalone/platform.h
===================================================================
--- compiler-rt/lib/scudo/standalone/platform.h
+++ compiler-rt/lib/scudo/standalone/platform.h
@@ -15,7 +15,7 @@
 #define SCUDO_LINUX 0
 #endif
 
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) || defined(__BIONIC__)
 #define SCUDO_ANDROID 1
 #else
 #define SCUDO_ANDROID 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71772.234906.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191220/7ccb3347/attachment.bin>


More information about the llvm-commits mailing list