https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/216135
This is not used in llvm.org yet, but will be used in swiftlang with https://github.com/swiftlang/llvm-project/pull/13750. >From 277ab830210c4b4787757848a5424c9126c13ba8 Mon Sep 17 00:00:00 2001 From: Charles Zablit <[email protected]> Date: Thu, 13 Aug 2026 18:58:04 +0100 Subject: [PATCH] [lldb] introduce the requireMacOS decorator --- lldb/packages/Python/lldbsuite/test/decorators.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index abd438c0cdf6e..306eb20622746 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -1234,6 +1234,13 @@ def requirePOSIX(func): return requireNotPlatform(["windows"], reason="uses the posix API.")(func) +def requireMacOS(func): + """Mark the item as inherently macOS-only, as opposed to other Darwin + platforms (iOS, tvOS, watchOS, ...). + """ + return requirePlatform(["macosx"])(func) + + def requireSignals(func): """Mark the item as requiring POSIX signal support on the target.""" return requireNotPlatform(["windows", "wasip1", "wasi"])(func) _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
