Skip to content

Commit 1de1f87

Browse files
luoliwoshangdeadprogram
authored andcommitted
Docs: Clarify build verification step for macOS users
1 parent 778164c commit 1de1f87

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

BUILDING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,17 @@ Try running TinyGo:
8585

8686
./build/tinygo help
8787

88-
Also, make sure the `tinygo` binary really is statically linked. Check this
89-
using `ldd` (not to be confused with `lld`):
88+
Also, make sure the `tinygo` binary really is statically linked. The command to check for
89+
dynamic dependencies differs depending on your operating system.
90+
91+
On Linux, use `ldd` (not to be confused with `lld`):
9092

9193
ldd ./build/tinygo
9294

95+
On macOS, use otool -L:
96+
97+
otool -L ./build/tinygo
98+
9399
The result should not contain libclang or libLLVM.
94100

95101
## Make a release tarball

0 commit comments

Comments
 (0)