Skip to content

Commit 5ac9d41

Browse files
committed
[sanitizer] Add hexagon support to lsan
Adds build support for hexagon linux to lsan.
1 parent 9ea59e1 commit 5ac9d41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ set(ALL_GWP_ASAN_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64})
5050
if(APPLE)
5151
set(ALL_LSAN_SUPPORTED_ARCH ${X86} ${X86_64} ${MIPS64} ${ARM64})
5252
else()
53-
set(ALL_LSAN_SUPPORTED_ARCH ${X86} ${X86_64} ${MIPS64} ${ARM64} ${ARM32} ${PPC64} ${S390X} ${RISCV64})
53+
set(ALL_LSAN_SUPPORTED_ARCH ${X86} ${X86_64} ${MIPS64} ${ARM64} ${ARM32}
54+
${PPC64} ${S390X} ${RISCV64} ${HEXAGON})
5455
endif()
5556
set(ALL_MSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64} ${PPC64} ${S390X})
5657
set(ALL_HWASAN_SUPPORTED_ARCH ${X86_64} ${ARM64})

compiler-rt/lib/lsan/lsan_allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ChunkMetadata {
5050
};
5151

5252
#if defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \
53-
defined(__arm__) || SANITIZER_RISCV64
53+
defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__)
5454
template <typename AddressSpaceViewTy>
5555
struct AP32 {
5656
static const uptr kSpaceBeg = 0;

0 commit comments

Comments
 (0)