mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +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:
parent
f09fa3c87b
commit
2bd9bbafe4
20
README.md
20
README.md
|
@ -25,7 +25,7 @@ then:
|
||||||
nmake
|
nmake
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building Z3 using make/g++ and Python
|
## Building Z3 using make and GCC/Clang
|
||||||
|
|
||||||
Execute:
|
Execute:
|
||||||
|
|
||||||
|
@ -36,6 +36,15 @@ Execute:
|
||||||
sudo make install
|
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
|
By default, it will install z3 executable at ``PREFIX/bin``, libraries at
|
||||||
``PREFIX/lib``, and include files at ``PREFIX/include``, where ``PREFIX``
|
``PREFIX/lib``, and include files at ``PREFIX/include``, where ``PREFIX``
|
||||||
installation prefix if inferred by the ``mk_make.py`` script. It is usually
|
installation prefix if inferred by the ``mk_make.py`` script. It is usually
|
||||||
|
@ -80,13 +89,4 @@ To uninstall Z3, use
|
||||||
sudo make uninstall
|
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.
|
To clean Z3 you can delete the build directory and run the ``mk_make.py`` script again.
|
||||||
|
|
Loading…
Reference in a new issue