mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Fix command line indent in `README.md
`
This commit is contained in:
parent
2947893e10
commit
560810ee67
38
README.md
38
README.md
|
@ -9,20 +9,20 @@ Z3 can be built using Visual Studio Command Prompt and make/g++.
|
||||||
32-bit builds, start with:
|
32-bit builds, start with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python scripts/mk_make.py
|
python scripts/mk_make.py
|
||||||
```
|
```
|
||||||
|
|
||||||
or instead, for a 64-bit build:
|
or instead, for a 64-bit build:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python scripts/mk_make.py -x
|
python scripts/mk_make.py -x
|
||||||
```
|
```
|
||||||
|
|
||||||
then:
|
then:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd build
|
cd build
|
||||||
nmake
|
nmake
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building Z3 using make and GCC/Clang
|
## Building Z3 using make and GCC/Clang
|
||||||
|
@ -30,17 +30,17 @@ then:
|
||||||
Execute:
|
Execute:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python scripts/mk_make.py
|
python scripts/mk_make.py
|
||||||
cd build
|
cd build
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
Note by default ``gcc`` is used as the C++ compiler if it is available. If you
|
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
|
would prefer to use Clang change the ``mk_make.py`` line to
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CXX=clang++ CC=clang python scripts/mk_make.py
|
CXX=clang++ CC=clang python scripts/mk_make.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that Clang < 3.7 does not support OpenMP.
|
Note that Clang < 3.7 does not support OpenMP.
|
||||||
|
@ -52,10 +52,10 @@ installation prefix if inferred by the ``mk_make.py`` script. It is usually
|
||||||
the ``--prefix=`` command line option to change the install prefix. For example:
|
the ``--prefix=`` command line option to change the install prefix. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python scripts/mk_make.py --prefix=/home/leo
|
python scripts/mk_make.py --prefix=/home/leo
|
||||||
cd build
|
cd build
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the above will typically disable the installation of the Python bindings
|
Note the above will typically disable the installation of the Python bindings
|
||||||
|
@ -72,10 +72,10 @@ Therefore it must always contain a trailing slash.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python scripts/mk_make.py
|
python scripts/mk_make.py
|
||||||
cd build
|
cd build
|
||||||
make
|
make
|
||||||
make install DESTDIR=/home/leo/
|
make install DESTDIR=/home/leo/
|
||||||
```
|
```
|
||||||
|
|
||||||
In this example, the Z3 Python bindings will be stored at
|
In this example, the Z3 Python bindings will be stored at
|
||||||
|
@ -86,7 +86,7 @@ distributions) where X.Y corresponds to the python version in your system.
|
||||||
To uninstall Z3, use
|
To uninstall Z3, use
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo make uninstall
|
sudo make uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
|
@ -103,7 +103,7 @@ platforms the location of the C# compiler and gac utility need to be known. You
|
||||||
can set these as follows if they aren't detected automatically. For example:
|
can set these as follows if they aren't detected automatically. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CSC=/usr/bin/csc GACUTIL=/usr/bin/gacutil python scripts/mk_make.py
|
CSC=/usr/bin/csc GACUTIL=/usr/bin/gacutil python scripts/mk_make.py
|
||||||
```
|
```
|
||||||
|
|
||||||
To disable building these bindings pass ``--nodotnet`` to ``mk_make.py``.
|
To disable building these bindings pass ``--nodotnet`` to ``mk_make.py``.
|
||||||
|
|
Loading…
Reference in a new issue