Skip to content

Commit bd7bebc

Browse files
deadprogramaykevl
authored andcommitted
docs/guides: add pages for macOS and Windows
Signed-off-by: deadprogram <[email protected]>
1 parent 08fbf1d commit bd7bebc

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

content/docs/guides/macos.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "macOS support"
3+
weight: 4
4+
description: |
5+
How to use TinyGo to create standard macOS executables.
6+
---
7+
8+
Using TinyGo you can compile programs for macOS systems.
9+
10+
For cross compiling, you can use `GOOS`. For example, you can cross compile the `examples/serial` example from a Linux host targeting macOS with the following command:
11+
12+
GOOS=darwin tinygo build -o serial examples/serial

content/docs/guides/windows.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Windows support"
3+
weight: 4
4+
description: |
5+
How to use TinyGo to create standard Windows executables.
6+
---
7+
8+
TinyGo also lets you compile programs for Windows systems.
9+
10+
For cross compiling, you can use `GOOS` and `GOARCH` as usual. For example, you can cross compile the `examples/serial` example from a Linux host targeting Windows with the following command:
11+
12+
GOOS=windows tinygo build -o serial.exe examples/serial

0 commit comments

Comments
 (0)