Closed curldivergence closed 2 months ago
Please make an issue here please: https://github.com/odin-lang/odin-lang.org
You can also make a PR if you want to improvement to the documentation directly.
We have rewritten the install documentation and I think all these points were addressed, thanks for bringing them up!
Hi, I've decided to try Odin on macOS (Sonoma 14.5, aarch64), and noticed several issues with the "Getting Started" section related to this platform:
run echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc_profile
works only for Intel-based Macs, on ARM-based ones Homebrew does not install packages into/usr/local
but rather into/opt/homebrew/
(symlink to LLVMbin
directory on my machine is located at/opt/homebrew/opt/llvm/bin/
)export
command should be appended: I suppose that either~/.zshrc
or~/.zsh_profile
was meant (however even though I usezsh
as my main interactive shell, the latter file is absent on my system)zsh
as a shell, but the very next instruction item also mentionsbash
, in which case (1) would not have effectbin
directory to$PATH
can be dangerous (this is also mentioned inbrew info llvm
, btw), since$PATH
, most importantly,clang
clang
in their$PATH
and we can just tell them to overwrite it, this is not what actually happens since the build instructions tell to append LLVM's/bin/
to$PATH
(i.e. not prepend), so after doing thatwhich clang
would still return/usr/bin/clang
, resulting in a mixture of different toolchain versions on$PATH
, which can lead to interesting problems :)On newer versions of macOS, some headers are not installed by default
, so maybe it should be removed or the specific versions should be stated?Please let me know if you need any more info from my system or if I can help in any way. Thanks!