You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ dependencies: [
38
38
```
39
39
40
40
> [!NOTE]
41
+
>
41
42
> - You may need to configure the Swift toolchain header for proper integration of OpenAttributeGraph
42
43
> - By default, OpenAttributeGraphShims will use the private AttributeGraph as its implementation on Apple platforms
43
44
@@ -49,6 +50,26 @@ For a simpler setup, you can use the prebuilt XCFramework available on the [rele
49
50
50
51
The current suggested toolchain to build the project is Swift 6.1.2 / Xcode 16.4.
51
52
53
+
### Set up LIB_SWIFT_PATH on non-Darwin platform
54
+
55
+
If your swift binary path is located in your `<toolchain>/usr/bin/swift` (eg. installed by [swiftbox](https://github.com/stevapple/swiftbox)), no setup is required.
56
+
57
+
Otherwise set up it manully by exporting `LIB_SWIFT_PATH` environment variable.
58
+
59
+
> The following command assume you already have [swiftly](https://github.com/swiftlang/swiftly) installed.
60
+
61
+
```shell
62
+
export OPENATTRIBUTEGRAPH_LIB_SWIFT_PATH="$(swiftly use --print-location)/usr/lib/swift"
63
+
# Or use the swift_static path
64
+
export OPENATTRIBUTEGRAPH_LIB_SWIFT_PATH="$(swiftly use --print-location)/usr/lib/swift_static"
65
+
```
66
+
67
+
Alternatively, you can set the path using the Swift SDK location. For example:
0 commit comments