Would this specifically be for the WebAssembly target?
Yes, that's right :-)
There is now an llvm formula for use by tinygo under macOS here: https://github.com/tinygo-org/homebrew-tools (The mainline llvm formula does not support the wasm target as of yet)
Will report back if I get it compiled and working with tinygo.
The installation instructions should probably be something like this though:
brew tap tinygo-org/tools
brew install tinygo-org/tools/llvm
Note that thetinygo-import-report was updated 6 months ago, and a lot has happened in TinyGo since.
I was wondering how I can know the latest situation.
It looks like https://github.com/trashhalo/tinygo-import-report/blob/master/report.go is used to generate a new report in the README.
The easiest way to try TinyGo is using Docker:
docker pull tinygo/tinygo:latest
docker run --rm -v $(pwd):/src -w /src tinygo/tinygo:latest tinygo build -o wasm.wasm -target=wasm -tags=example ./examples/rotate
EDIT: LOL, this finishes silently but without dumping anything.
Most helpful comment
There is now an
llvmformula for use bytinygounder macOS here: https://github.com/tinygo-org/homebrew-tools (The mainlinellvmformula does not support the wasm target as of yet)Will report back if I get it compiled and working with tinygo.
The installation instructions should probably be something like this though: