An incremental computation library for Swift.
Compute is a reimplementation of the AttributeGraph framework on Apple platforms.
This project has a dependency on the Swift language codebase, which must be configured manually.
-
Clone the
swiftlang/swiftrepository toCheckouts/swift.From within the package directory:
mkdir -p Checkouts cd Checkouts git clone [email protected]:swiftlang/swift.git swift
-
Write the
CMakeConfig.hfile:From within the Swift repository:
cat > include/swift/Runtime/CMakeConfig.h << EOF #ifndef SWIFT_RUNTIME_CMAKECONFIG_H #define SWIFT_RUNTIME_CMAKECONFIG_H #define SWIFT_VERSION_MAJOR "6" #define SWIFT_VERSION_MINOR "2" #endif EOF
swift buildThis package can also be built as a XCFramework bundle using Xcode by running
Scripts/create-xcframework.sh.
Thank you to OpenSwiftUIProject for providing much insight into AttributeGraph and the Swift runtime.