4 ms·
macOS does not come with llvm/clang, you have to download Xcode, which you can't do anonymously, you need to create an account with Apple. Ages ago, macOS did
by 1over137 6y ago
macOS does not come with llvm/clang, you have to download Xcode, which you can't do anonymously, you need to create an account with Apple. Ages ago, macOS did actually come with gcc.
- jeffbee 6y agoYou can install the toolchain with `xcode-select` which does not require an Apple ID.
- kitsunesoba 6y agoAnd if I'm not mistaken, until clang is installed commands like "clang" and "gcc" redirect to xcode-select, so if the user tries to compile something the system will offer to install the toolchain for you.
- jeffbee 6y agoYep. That's how I setup a new Mac. I open a terminal and type `make` and it installs the world.