1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

docs: add a note on how to install gcc-mingw-w64-x86-64 needed for linux->windows cross compilation (#14905)

This commit is contained in:
CC 2022-06-30 23:25:06 -06:00 committed by GitHub
parent 71ff221cff
commit ff0f75803d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5808,7 +5808,12 @@ or
```shell
v -os linux .
```
NB: Cross-compiling a windows binary on a linux machine requires the GNU C compiler for
MinGW-w64 (targeting Win64) to first be installed.
```shell
sudo apt-get install gcc-mingw-w64-x86-64
```
(Cross compiling for macOS is temporarily not possible.)
If you don't have any C dependencies, that's all you need to do. This works even