]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, c++, Darwin: Do not duplicate asan and pthread libs.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 1 Jun 2026 23:10:43 +0000 (00:10 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 6 Jun 2026 14:28:28 +0000 (15:28 +0100)
The linker on newer versions of Darwin complains about duplicate libaries,
The asan library is already provided by the relevant specs and pthreads are
included in libSystem.

gcc/testsuite/ChangeLog:

* g++.dg/asan/deep-thread-stack-1.C: Omit duplicate libraries
for Darwin.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C

index d5d85c42d93f3883372eee444f4e56c5f0f3d8e5..98f4b09a2080a30d5d2b2855b05efc9fc194660d 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run { target pthread } }
-// { dg-options "-lasan -lpthread" }
+// { dg-options "-lasan -lpthread" { target { ! *-*-darwin* } } }
 // { dg-shouldfail "asan" }
 
 #include <pthread.h>