Added macos build action
This commit is contained in:
@@ -122,8 +122,9 @@ make install DESTDIR=/opt/clang-uml
|
||||
export PATH=$PATH:$PWD/release
|
||||
```
|
||||
|
||||
#### macos
|
||||
#### macOS
|
||||
|
||||
On Intel-based macOS:
|
||||
```bash
|
||||
brew install ccache cmake llvm yaml-cpp
|
||||
|
||||
@@ -134,6 +135,17 @@ LLVM_VERSION=16 make release
|
||||
CMAKE_PREFIX=/usr/local/opt/llvm/lib/cmake/llvm make release
|
||||
```
|
||||
|
||||
On Arm-based macOS:
|
||||
```bash
|
||||
brew install ccache cmake llvm yaml-cpp
|
||||
|
||||
export CC=/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
|
||||
```
|
||||
> 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.
|
||||
|
||||
#### Windows
|
||||
|
||||
##### Visual Studio native build
|
||||
|
||||
Reference in New Issue
Block a user