From 1de1f87c6b84f95d258e0d6109570d1abd726a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=B9=8B=E9=98=B3?= <51194195+luoliwoshang@users.noreply.github.com> Date: Wed, 9 Jul 2025 14:26:47 +0800 Subject: [PATCH] Docs: Clarify build verification step for macOS users --- BUILDING.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 6f90d9bad..2ab115e8c 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -85,11 +85,17 @@ Try running TinyGo: ./build/tinygo help -Also, make sure the `tinygo` binary really is statically linked. Check this -using `ldd` (not to be confused with `lld`): +Also, make sure the `tinygo` binary really is statically linked. The command to check for +dynamic dependencies differs depending on your operating system. + +On Linux, use `ldd` (not to be confused with `lld`): ldd ./build/tinygo +On macOS, use otool -L: + + otool -L ./build/tinygo + The result should not contain libclang or libLLVM. ## Make a release tarball