Skip to content

Commit bac3808

Browse files
committed
Reapply "[compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (#68343)"
This reverts commit 37432c1. The tunings for the lsan allocator for Fuchsia on RISCV should be adjusted.
1 parent f8058a3 commit bac3808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@
284284
// For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
285285
// change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
286286
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
287-
# if SANITIZER_RISCV64 || SANITIZER_IOS || SANITIZER_DRIVERKIT
287+
# if (SANITIZER_RISCV64 && !SANITIZER_FUCHSIA) || SANITIZER_IOS || \
288+
SANITIZER_DRIVERKIT
288289
# define SANITIZER_CAN_USE_ALLOCATOR64 0
289290
# elif defined(__mips64) || defined(__hexagon__)
290291
# define SANITIZER_CAN_USE_ALLOCATOR64 0

0 commit comments

Comments
 (0)