From 8acc0b9c2a3942077d43f0baefc2841cc993fae1 Mon Sep 17 00:00:00 2001 From: Florian Wühr Date: Mon, 15 May 2023 11:50:42 +0200 Subject: compiler-rt-sanitizers: allow tsan to be built since clang 12 works by default --- ...0005-compiler-rt-Disable-tsan-on-OE-glibc.patch | 40 ---------------------- recipes-devtools/clang/common.inc | 1 - 2 files changed, 41 deletions(-) delete mode 100644 recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch diff --git a/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch b/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch deleted file mode 100644 index 97d57c2..0000000 --- a/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 121a71a3923dbace24dbb7bd25f9f286fb9f91fb Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Mon, 18 Jul 2016 08:05:02 +0000 -Subject: [PATCH] compiler-rt: Disable tsan on OE/glibc - -It does not build see -http://lists.llvm.org/pipermail/llvm-dev/2016-July/102235.html - -Signed-off-by: Khem Raj ---- - compiler-rt/cmake/config-ix.cmake | 2 +- - compiler-rt/test/sanitizer_common/CMakeLists.txt | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake -index f81b8384cbd5..196aa62fd01c 100644 ---- a/compiler-rt/cmake/config-ix.cmake -+++ b/compiler-rt/cmake/config-ix.cmake -@@ -723,7 +723,7 @@ else() - endif() - - if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND -- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Android|NetBSD") -+ OS_NAME MATCHES "Darwin|FreeBSD|Android|NetBSD") - set(COMPILER_RT_HAS_TSAN TRUE) - else() - set(COMPILER_RT_HAS_TSAN FALSE) -diff --git a/compiler-rt/test/sanitizer_common/CMakeLists.txt b/compiler-rt/test/sanitizer_common/CMakeLists.txt -index 7f1b0f257716..2caf78be2511 100644 ---- a/compiler-rt/test/sanitizer_common/CMakeLists.txt -+++ b/compiler-rt/test/sanitizer_common/CMakeLists.txt -@@ -11,7 +11,7 @@ set(SANITIZER_COMMON_TESTSUITES) - # FIXME(dliew): We should switch to COMPILER_RT_SANITIZERS_TO_BUILD instead of - # the hard coded `SUPPORTED_TOOLS_INIT` list once we know that the other - # sanitizers work. --set(SUPPORTED_TOOLS_INIT asan lsan msan tsan ubsan) -+set(SUPPORTED_TOOLS_INIT asan lsan msan ubsan) - set(SUPPORTED_TOOLS) - foreach(SANITIZER_TOOL ${SUPPORTED_TOOLS_INIT}) - string(TOUPPER ${SANITIZER_TOOL} SANITIZER_TOOL_UPPER) diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 6cedf4d..ed3c2c0 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -13,7 +13,6 @@ SRC_URI = "\ file://0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \ file://0003-compiler-rt-support-a-new-embedded-linux-target.patch \ file://0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch \ - file://0005-compiler-rt-Disable-tsan-on-OE-glibc.patch \ file://0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ file://0007-llvm-allow-env-override-of-exe-path.patch \ file://0008-clang-driver-Check-sysroot-for-ldso-path.patch \ -- cgit v1.2.3-54-g00ecf