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
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,6 +234,42 @@ ast-grep is also used when compiling, it can be installed with the following com
234
234
cargo install --locked ast-grep
235
235
```
236
236
237
+
### Cross-Compiling for Windows from Arch Linux
238
+
239
+
You can cross-compile Windows binaries on Arch Linux without Docker by using
240
+
the GNU Windows target and MinGW tools.
241
+
242
+
```sh
243
+
sudo pacman -S --needed \
244
+
mingw-w64-gcc \
245
+
protobuf \
246
+
flatbuffers \
247
+
ast-grep
248
+
rustup target add x86_64-pc-windows-gnu
249
+
```
250
+
251
+
Then build with:
252
+
253
+
```sh
254
+
make release PLATFORM=windows FEATURES=server,spfs/server
255
+
```
256
+
257
+
Output binaries are written to:
258
+
259
+
```text
260
+
target/x86_64-pc-windows-gnu/release/
261
+
```
262
+
263
+
When cross-compiling from Linux, workspace builds automatically exclude
264
+
`spfs-cli-winfsp` because `winfsp-sys` requires running its build script on a
265
+
Windows host. Build that crate natively on Windows if needed.
266
+
267
+
If you prefer containerized cross-compilation, install `cross` and run:
268
+
269
+
```sh
270
+
make release PLATFORM=windows WINDOWS_CARGO=cross FEATURES=server,spfs/server
271
+
```
272
+
237
273
### Benchmarks
238
274
239
275
Benchmark tests can be found in `benches/`. All benchmark tests can be run with `cargo bench`, but in order to successfully pass `criterion`-specific options to the `criterion`-based benchmarks, those types of benchmarks need to be filtered for.
Copy file name to clipboardExpand all lines: docs/admin/install.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,3 +22,21 @@ make install-spfs # only spfs
22
22
Currently, only spfs is supported on windows and is still considered experimental. File systems can be mounted and viewed, but not modified. See above on building from source - windows builds will require WinFSP to be installed rather than fuse libraries.
23
23
24
24
<!-- TODO: include really basic make instructions as above for playing with this -->
0 commit comments