Skip to content

Commit a4d51e5

Browse files
authored
[compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (#68343)
The allocator should be tuned well enough for Fuchsia+RISCV.
1 parent 7f9a50f commit a4d51e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform.h

+2-1
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)