Updated macos installation docs

This commit is contained in:
Bartek Kryza
2024-07-19 00:25:15 +02:00
parent 95fa252267
commit b6039251bc

View File

@@ -8,6 +8,7 @@
* [Conda](#conda) * [Conda](#conda)
* [Nix](#nix) * [Nix](#nix)
* [Windows](#windows) * [Windows](#windows)
* [macOS](#macos)
* [Building from source](#building-from-source) * [Building from source](#building-from-source)
* [Linux](#linux) * [Linux](#linux)
* [macos](#macos) * [macos](#macos)
@@ -85,6 +86,14 @@ nix run github:bkryza/clang-uml
Download and run the latest Windows installer from Download and run the latest Windows installer from
[Releases page](https://github.com/bkryza/clang-uml/releases). [Releases page](https://github.com/bkryza/clang-uml/releases).
#### macOS
Use Homebrew:
```console
brew install clang-uml
```
### Building from source ### Building from source
#### Linux #### Linux
@@ -135,13 +144,13 @@ LLVM_VERSION=16 make release
CMAKE_PREFIX=/usr/local/opt/llvm/lib/cmake/llvm make release CMAKE_PREFIX=/usr/local/opt/llvm/lib/cmake/llvm make release
``` ```
On Arm-based macOS: On Arm-based macOS (since Ventura):
```bash ```bash
brew install ccache cmake llvm yaml-cpp brew install ccache cmake llvm yaml-cpp
export CC=/opt/homebrew/opt/llvm/bin/clang export CC=/opt/homebrew/opt/llvm/bin/clang
export CXX=/opt/homebrew/opt/llvm/bin/clang++ export CXX=/opt/homebrew/opt/llvm/bin/clang++
CMAKE_PREFIX=/usr/local/opt/llvm/lib/cmake/llvm CMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" make release CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm CMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" make release
``` ```
> These paths will use the latest LLVM version installed by `brew`. > These paths will use the latest LLVM version installed by `brew`.
> If you want to use a specific version, you will need to adjust the paths. > If you want to use a specific version, you will need to adjust the paths.