Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions Compute.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
);
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 26.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"@executable_path/Frameworks",
"@loader_path/Frameworks",
Expand All @@ -303,8 +303,8 @@
"@loader_path/Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 26.0;
MARKETING_VERSION = 1.0;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 0.2.1;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
Expand All @@ -327,9 +327,9 @@
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 6.0;
SYSTEM_HEADER_SEARCH_PATHS = (
Submodules/swift-runtime-headers/include,
Submodules/swift-runtime-headers/stdlib/include,
Submodules/swift-runtime-headers/stdlib/public/SwiftShims,
"Submodules/swift-runtime-headers/include",
"Submodules/swift-runtime-headers/stdlib/include",
"Submodules/swift-runtime-headers/stdlib/public/SwiftShims",
);
TARGETED_DEVICE_FAMILY = "1,2,7";
USER_HEADER_SEARCH_PATHS = (
Expand All @@ -339,7 +339,7 @@
USE_HEADERMAP = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 26.0;
XROS_DEPLOYMENT_TARGET = 1.3;
};
name = Debug;
};
Expand Down Expand Up @@ -405,7 +405,7 @@
);
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 26.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"@executable_path/Frameworks",
"@loader_path/Frameworks",
Expand All @@ -415,8 +415,8 @@
"@loader_path/Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 26.0;
MARKETING_VERSION = 1.0;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 0.2.1;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
MTL_ENABLE_DEBUG_INFO = NO;
Expand All @@ -437,9 +437,9 @@
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 6.0;
SYSTEM_HEADER_SEARCH_PATHS = (
Submodules/swift-runtime-headers/include,
Submodules/swift-runtime-headers/stdlib/include,
Submodules/swift-runtime-headers/stdlib/public/SwiftShims,
"Submodules/swift-runtime-headers/include",
"Submodules/swift-runtime-headers/stdlib/include",
"Submodules/swift-runtime-headers/stdlib/public/SwiftShims",
);
TARGETED_DEVICE_FAMILY = "1,2,7";
USER_HEADER_SEARCH_PATHS = (
Expand All @@ -449,7 +449,7 @@
USE_HEADERMAP = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 26.0;
XROS_DEPLOYMENT_TARGET = 1.3;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var dependencies: [Package.Dependency] = [

let package = Package(
name: "Compute",
platforms: [.macOS(.v26)],
platforms: [.macOS(.v15)],
products: [
.library(name: "Compute", targets: ["Compute"]),
.library(name: "_ComputeTestSupport", targets: ["_ComputeTestSupport"]),
Expand Down
1 change: 1 addition & 0 deletions Sources/Compute/Graph/TreeElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extension TreeElement {
extension Nodes: @retroactive IteratorProtocol {
public typealias Element = AnyAttribute

@inlinable
public mutating func next() -> AnyAttribute? {
let result = __AGTreeElementGetNextNode(&self)
return result == .nil ? nil : result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const MutableIndirectNode &IndirectNode::to_mutable() const {
return static_cast<const MutableIndirectNode &>(*this);
}

void IndirectNode::modify(WeakAttributeID source, size_t size) {
void IndirectNode::modify(WeakAttributeID source, size_t offset) {
_source = source;
_size = size;
_offset = offset;
}

} // namespace AG
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class IndirectNode {
const RelativeAttributeID next_attribute() const { return _next_attribute; }
void set_next_attribute(RelativeAttributeID next_attribute) { _next_attribute = next_attribute; }

void modify(WeakAttributeID source, size_t size);
void modify(WeakAttributeID source, size_t offset);
};

class MutableIndirectNode : public IndirectNode {
Expand Down
4 changes: 2 additions & 2 deletions Sources/ComputeCxx/Graph/Graph.mm
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ int trap_cycles() {
}

frame_count += 1;
if (frame_count >= max_frames) {
if (max_frames >= 0 && frame_count >= max_frames) {
return description;
}
}
Expand All @@ -942,7 +942,7 @@ int trap_cycles() {
[nodes addObject:[NSNumber numberWithUnsignedInt:frame.attribute.offset()]];

frame_count += 1;
if (frame_count >= max_frames) {
if (max_frames >= 0 && frame_count >= max_frames) {
return nodes;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void AGSubgraphEndTreeElement(AGAttribute value);
AG_EXPORT
AG_REFINED_FOR_SWIFT
void AGSubgraphSetTreeOwner(AGSubgraphRef subgraph, AGAttribute owner)
AG_SWIFT_NAME(setter:AGSubgraphRef.treeOwner(self:_:));
AG_SWIFT_NAME(AGSubgraphRef.setTreeOwner(self:_:));

AG_EXPORT
AG_REFINED_FOR_SWIFT
Expand Down