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
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,19 +50,25 @@ For a simpler setup, you can use the prebuilt XCFramework available on the [rele
50
50
51
51
The current suggested toolchain to build the project is Swift 6.1.2 / Xcode 16.4.
52
52
53
-
### Usage with ```swiftly````
53
+
### Set up LIB_SWIFT_PATH on non-Darwin platform
54
54
55
-
If you have installed [Swiftly](https://github.com/swiftlang/swiftly) for managing your installed swift toolchains (Linux) set the following variable to your shell:
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 since the swift bin location be detected by `_` environment automatically.
56
56
57
-
```bash
58
-
export SWIFT_TOOLCHAIN_PATH="$(swiftly use --print-location)"
59
-
```
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
60
61
-
```fish
62
-
set -gx SWIFT_TOOLCHAIN_PATH (swiftly use --print-location)
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"
63
65
```
64
66
65
-
Then run `swift build`
67
+
Alternatively, you can set the path directly to the Swift SDK location. For example:
0 commit comments