mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
docs: add FreeBSD in cross compilation section (#22249)
This commit is contained in:
parent
c0f7244654
commit
94a412dcc8
12
doc/docs.md
12
doc/docs.md
@ -7203,7 +7203,9 @@ to race conditions. There are several approaches to deal with these:
|
||||
|
||||
## Cross compilation
|
||||
|
||||
To cross compile your project simply run
|
||||
Cross compilation is supported for Windows, Linux and FreeBSD.
|
||||
|
||||
To cross compile your project simply run:
|
||||
|
||||
```shell
|
||||
v -os windows .
|
||||
@ -7215,8 +7217,14 @@ or
|
||||
v -os linux .
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```shell
|
||||
v -os freebsd .
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Cross-compiling a windows binary on a linux machine requires the GNU C compiler for
|
||||
> Cross-compiling a Windows binary on a Linux machine requires the GNU C compiler for
|
||||
> MinGW-w64 (targeting Win64) to first be installed.
|
||||
|
||||
For Ubuntu/Debian based distributions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user