Fixed building and tests on macos

This commit is contained in:
Bartek Kryza
2022-08-30 21:23:56 +02:00
parent f1c0361c46
commit 0cef28ac02
7 changed files with 29 additions and 6 deletions

View File

@@ -66,8 +66,6 @@ apt install ccache cmake libyaml-cpp-dev clang-12 libclang-12-dev libclang-cpp12
# macos
brew install ccache cmake llvm yaml-cpp
```
> Please note that on macos this tool is not fully functional, i.e. several test cases fail. The build instructions are
> provided for development purposes only.
Then proceed with building the sources:
@@ -79,12 +77,17 @@ make release
release/clang-uml --help
# To build using a specific installed version of LLVM use:
LLVM_VERSION=13 make release
LLVM_VERSION=14 make release
# Optionally
make install
# or
export PATH=$PATH:$PWD/release
# On macos, it is necessary to build clang-uml using the same llvm against which it is linked, e.g.
export CC=/usr/local/opt/llvm/bin/clang
export CCX=/usr/local/opt/llvm/bin/clang++
LLVM_VERSION=14 make release
```
## Usage