From 01faf1d334ed4e1dfdb5dc1636a939643b6054d2 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 6 Sep 2026 23:44:31 +0800 Subject: [PATCH] Add Compute graph debug shims for non-Darwin platforms --- .../Adapter/Compute.swift | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Sources/OpenAttributeGraphShims/Adapter/Compute.swift b/Sources/OpenAttributeGraphShims/Adapter/Compute.swift index 669645c9..e6be32ba 100644 --- a/Sources/OpenAttributeGraphShims/Adapter/Compute.swift +++ b/Sources/OpenAttributeGraphShims/Adapter/Compute.swift @@ -51,6 +51,26 @@ extension Graph { } } +#if !canImport(Darwin) +extension Graph { + public func print(includeValues: Bool) {} + + public func archiveJSON(name: String?) {} + + public static func archiveJSON(name: UnsafePointer?) {} + + public func graphvizDescription(includeValues: Bool) -> String { + "" + } + + public static func printStack(maxFrames: Int) {} + + public static func stackDescription(maxFrames: Int) -> String { + "" + } +} +#endif + extension _AttributeBody { public typealias Flags = _AttributeType.Flags }