Closed dignifiedquire closed 10 months ago
Apple Clang is a fork of Clang that is specialized to Apple's wishes. It doesn't support wasm32-unknown-unknown, at least when I tried. You need to download and use llvm.org Clang instead.
For anyone who has had this issue and is arriving here in the future, here's what you need to do:
Install Homebrew (if you haven't already):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install LLVM Clang:
brew install llvm
Verify the installation:
llvm-config --version
Export the correct PATH:
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
I am trying to build ring for
wasm32-unknown-unknown
, and it works fine on my linux based machines (x68_64) but when trying to build on my mac (aarch64) it fails with the following errorI tried to find sth in the issues, but was unable to find any hints of what I am doing wrong/not setting. Appreciate any help!