Skip to content

Commit

Permalink
[sanitizer] Allow preinit array on Android
Browse files Browse the repository at this point in the history
Extracted from D89251
  • Loading branch information
oontvoo authored and vitalybuka committed Nov 5, 2020
1 parent 4ec7f7e commit 678edfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Expand Up @@ -104,8 +104,7 @@
//
// FIXME: do we have anything like this on Mac?
#ifndef SANITIZER_CAN_USE_PREINIT_ARRAY
#if ((SANITIZER_LINUX && !SANITIZER_ANDROID) || \
SANITIZER_FUCHSIA || SANITIZER_NETBSD) && !defined(PIC)
#if (SANITIZER_LINUX || SANITIZER_FUCHSIA || SANITIZER_NETBSD) && !defined(PIC)
#define SANITIZER_CAN_USE_PREINIT_ARRAY 1
// Before Solaris 11.4, .preinit_array is fully supported only with GNU ld.
// FIXME: Check for those conditions.
Expand Down

0 comments on commit 678edfc

Please sign in to comment.