https://github.com/c-rhodes updated 
https://github.com/llvm/llvm-project/pull/180206

>From 8c31f7749ac89caf477f83ad0e58c414efad67f2 Mon Sep 17 00:00:00 2001
From: Rainer Orth <[email protected]>
Date: Fri, 6 Feb 2026 05:07:17 +0100
Subject: [PATCH] [ubsan][test] Skip Misc/Posix/static-link.cpp on Solaris
 (#175464)

The `UBSan-Standalone-x86_64 :: TestCases/Misc/Posix/static-link.cpp`
test currently `FAIL`s on Solaris/x86_64 with
```
ld: fatal: option '-z record' is incompatible with building a static executable
```
One cannot create static executables on Solaris since no `libc.a` is
delivered, so this patch skips the test.

Tested on `x86_64-pc-solaris2.11`.

(cherry picked from commit 5c2b510f882129fcdb3945842e3d050b068f3cda)
---
 compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp 
b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
index 081eec049e3fc..daa76b7322669 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
@@ -6,7 +6,7 @@
 // UNSUPPORTED: i386-target-arch, internal_symbolizer
 
 // Does not link.
-// UNSUPPORTED: darwin
+// UNSUPPORTED: darwin,target={{.*solaris.*}}
 
 #include <signal.h>
 #include <stdio.h>

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to