[compiler-rt] [ubsan][test] Skip Misc/Posix/static-link.cpp on Solaris (PR #175464)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 11 13:47:50 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Rainer Orth (rorth)
<details>
<summary>Changes</summary>
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`.
---
Full diff: https://github.com/llvm/llvm-project/pull/175464.diff
1 Files Affected:
- (modified) compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp (+1-1)
``````````diff
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>
``````````
</details>
https://github.com/llvm/llvm-project/pull/175464
More information about the llvm-commits
mailing list