3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00

Re-organise the discussion of Clang, it is not a second class citizen

and so doesn't deserve to be stuck at the end of the README. It also
**does** support OpenMP!
This commit is contained in:
Dan Liew 2015-12-12 10:31:12 +00:00
parent f09fa3c87b
commit 2bd9bbafe4

View file

@ -25,7 +25,7 @@ then:
nmake
```
## Building Z3 using make/g++ and Python
## Building Z3 using make and GCC/Clang
Execute:
@ -36,6 +36,15 @@ Execute:
sudo make install
```
Note by default ``gcc`` is used as the C++ compiler if it is available. If you
would prefer to use Clang change the ``mk_make.py`` line to
```bash
CXX=clang++ CC=clang python scripts/mk_make.py
```
Note that Clang < 3.7 does not support OpenMP.
By default, it will install z3 executable at ``PREFIX/bin``, libraries at
``PREFIX/lib``, and include files at ``PREFIX/include``, where ``PREFIX``
installation prefix if inferred by the ``mk_make.py`` script. It is usually
@ -80,13 +89,4 @@ To uninstall Z3, use
sudo make uninstall
```
## Building Z3 using clang and clang++ on Linux/OSX
Remark: clang does not support OpenMP yet.
```bash
CXX=clang++ CC=clang python scripts/mk_make.py
cd build
make
```
To clean Z3 you can delete the build directory and run the ``mk_make.py`` script again.