From c80df6cc1715a0f8b689116524a03c088da651b1 Mon Sep 17 00:00:00 2001 From: lightaooii Date: Sat, 8 Feb 2025 16:59:39 +0800 Subject: [PATCH 1/2] [tsan]Set ignore_noninstrumented_modules to 1 Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/IBKYCA Signed-off-by: gaohongtao --- compiler-rt/test/tsan/lit.cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/tsan/lit.cfg.py b/compiler-rt/test/tsan/lit.cfg.py index 4f0bf242800e..3d47d3313690 100644 --- a/compiler-rt/test/tsan/lit.cfg.py +++ b/compiler-rt/test/tsan/lit.cfg.py @@ -30,7 +30,7 @@ if config.host_os == 'Darwin': default_tsan_opts += ['ignore_interceptors_accesses=0'] if config.host_os == 'OHOS': - default_tsan_opts += ['ignore_noninstrumented_modules=0'] + default_tsan_opts += ['ignore_noninstrumented_modules=1'] # Platform-specific default TSAN_OPTIONS for lit tests. default_tsan_opts_str = ':'.join(default_tsan_opts) -- Gitee From 9188584b43b6f880d0c57e993589404038c5abe6 Mon Sep 17 00:00:00 2001 From: lightaooii Date: Sat, 8 Feb 2025 17:39:18 +0800 Subject: [PATCH 2/2] [tsan]Fix link error for libcxx_call_once https://gitee.com/openharmony/third_party_llvm-project/issues/IBKZ0O Signed-off-by: gaohongtao gaohongtao2@huawei.com --- compiler-rt/test/tsan/libcxx_call_once.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/tsan/libcxx_call_once.cpp b/compiler-rt/test/tsan/libcxx_call_once.cpp index 3e9e20a8e47d..b11e4c7af615 100644 --- a/compiler-rt/test/tsan/libcxx_call_once.cpp +++ b/compiler-rt/test/tsan/libcxx_call_once.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan %s -o %t && %run %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan %s %link_libcxx_tsan -o %t && %run %t 2>&1 | FileCheck %s // REQUIRES: ohos_family -- Gitee