[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

chore(docs): add lld mention for macOS to BUILD.md (#102)

* chore(docs): BUILD mentions lld for macOS

* Update BUILD.md

authored by

Taylor Beseda and committed by
GitHub
(Jul 1, 2026, 10:10 PM +0300) 7a28d5d6 5b2124e8

+10 -7
+10 -7
BUILD.md
··· 56 56 - `git` 57 57 - `make` 58 58 - `clang` with wasm32-capable support 59 + - `lld` (provides `wasm-ld`) 59 60 - `deno` 60 61 61 62 Equivalent packages are fine if your package manager uses different names. ··· 71 72 xcode-select --install 72 73 ``` 73 74 74 - Then install LLVM and Deno with Homebrew: 75 + Then install LLVM, LLD, and Deno with Homebrew: 75 76 76 77 ```sh 77 - brew install llvm deno 78 + brew install llvm lld deno 78 79 ``` 79 80 80 81 Use Homebrew LLVM before Apple's system `clang` when building `@bomb.sh/tty`: ··· 161 162 deno --version 162 163 ``` 163 164 164 - For a quick wasm-target smoke test, make sure `clang` can compile for `wasm32`: 165 + For a quick wasm-target smoke test, make sure `clang` can compile and link for 166 + `wasm32`: 165 167 166 168 ```sh 167 - clang --target=wasm32 -c -x c /dev/null -o /tmp/clayterm-wasm-test.o 168 - rm -f /tmp/clayterm-wasm-test.o 169 + clang --target=wasm32 -nostdlib -Wl,--no-entry -x c /dev/null -o /tmp/clayterm-wasm-test.wasm 170 + rm -f /tmp/clayterm-wasm-test.wasm 169 171 ``` 170 172 171 173 On macOS, if `which clang` still points to `/usr/bin/clang` and the wasm test ··· 253 255 254 256 - make sure you are using an LLVM/Clang build with wasm support 255 257 - on macOS, prefer the Homebrew `llvm` toolchain over `/usr/bin/clang` 258 + - on macOS, install `lld`; it provides `wasm-ld` 256 259 - on Linux/WSL2, make sure both `clang` and `lld` are installed 257 260 - rerun the wasm smoke test: 258 261 259 262 ```sh 260 - clang --target=wasm32 -c -x c /dev/null -o /tmp/clayterm-wasm-test.o 261 - rm -f /tmp/clayterm-wasm-test.o 263 + clang --target=wasm32 -nostdlib -Wl,--no-entry -x c /dev/null -o /tmp/clayterm-wasm-test.wasm 264 + rm -f /tmp/clayterm-wasm-test.wasm 262 265 ``` 263 266 264 267 If the smoke test fails, fix the toolchain first and only then rerun `make`.