[compiler-rt] [tsan] Add missing link option to tsan test after #84923 (PR #85003)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 17:22:53 PDT 2024


https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/85003

None

>From 8eea826eadababdc797ad095220fceb4abfce2ac Mon Sep 17 00:00:00 2001
From: Dave Clausen <daveclausen at gmail.com>
Date: Tue, 12 Mar 2024 17:22:39 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 compiler-rt/test/tsan/compare_exchange_acquire_fence.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/tsan/compare_exchange_acquire_fence.cpp b/compiler-rt/test/tsan/compare_exchange_acquire_fence.cpp
index b9fd0c5ad21f24..404fd2fbb3c226 100644
--- a/compiler-rt/test/tsan/compare_exchange_acquire_fence.cpp
+++ b/compiler-rt/test/tsan/compare_exchange_acquire_fence.cpp
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1
+// RUN: %clangxx_tsan -O1 %s %link_libcxx_tsan -o %t && %run %t 2>&1
 // This is a correct program and tsan should not report a race.
 //
 // Verify that there is a happens-before relationship between a



More information about the llvm-commits mailing list