diff options
author | PiJoules <6019989+PiJoules@users.noreply.github.com> | 2023-10-06 11:36:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 11:36:22 -0700 |
commit | a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4 (patch) | |
tree | 95922b66211487409496cae5bd28507e9eb30142 | |
parent | 7f9a50ff0628e80743e5f4048274b5783f47a5cc (diff) | |
download | llvm-a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4.zip llvm-a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4.tar.gz llvm-a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4.tar.bz2 |
[compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (#68343)
The allocator should be tuned well enough for Fuchsia+RISCV.
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h index c1ca5c9..903a7121 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h @@ -284,7 +284,8 @@ // For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or // change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here. #ifndef SANITIZER_CAN_USE_ALLOCATOR64 -# if SANITIZER_RISCV64 || SANITIZER_IOS || SANITIZER_DRIVERKIT +# if (SANITIZER_RISCV64 && !SANITIZER_FUCHSIA) || SANITIZER_IOS || \ + SANITIZER_DRIVERKIT # define SANITIZER_CAN_USE_ALLOCATOR64 0 # elif defined(__mips64) || defined(__hexagon__) # define SANITIZER_CAN_USE_ALLOCATOR64 0 |