aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorzhanglimin <zhanglimin@loongson.cn>2023-07-03 16:05:00 +0800
committerzhanglimin <zhanglimin@loongson.cn>2023-07-03 16:05:02 +0800
commit280d163887eade88bb9c2c300337b0bc414d6301 (patch)
tree080d3a5276e74101c90040988f20a8579aa187a7 /compiler-rt
parent653920cb158bf895cdb0b32098a105f26007290a (diff)
downloadllvm-280d163887eade88bb9c2c300337b0bc414d6301.zip
llvm-280d163887eade88bb9c2c300337b0bc414d6301.tar.gz
llvm-280d163887eade88bb9c2c300337b0bc414d6301.tar.bz2
[dfsan] Support Linux loongarch64
Make minor changes to enable DFSAN and its tests on loongarch64. And port Linux loongarch64 memory mappings from msan. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D140690
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake2
-rw-r--r--compiler-rt/test/dfsan/lit.cfg.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
index 3b04e9d..dfa0f63 100644
--- a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
+++ b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
@@ -30,7 +30,7 @@ set(ALL_ASAN_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64} ${RISCV64}
${MIPS32} ${MIPS64} ${PPC64} ${S390X} ${SPARC} ${SPARCV9} ${HEXAGON}
${LOONGARCH64})
set(ALL_ASAN_ABI_SUPPORTED_ARCH ${X86_64} ${ARM64})
-set(ALL_DFSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64})
+set(ALL_DFSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64} ${LOONGARCH64})
if(ANDROID)
set(OS_NAME "Android")
diff --git a/compiler-rt/test/dfsan/lit.cfg.py b/compiler-rt/test/dfsan/lit.cfg.py
index 286c0c7..e947c51 100644
--- a/compiler-rt/test/dfsan/lit.cfg.py
+++ b/compiler-rt/test/dfsan/lit.cfg.py
@@ -25,5 +25,5 @@ config.substitutions.append(("%clangxx_dfsan ", build_invocation(clang_dfsan_cxx
config.suffixes = [".c", ".cpp"]
# DataFlowSanitizer tests are currently supported on Linux only.
-if not (config.host_os in ["Linux"] and config.target_arch in ["aarch64", "x86_64"]):
+if not (config.host_os in ["Linux"] and config.target_arch in ["aarch64", "x86_64", "loongarch64"]):
config.unsupported = True