added valgrind info

This commit is contained in:
Miodrag Milanovic 2018-06-24 20:10:15 +02:00
parent 5147ae3756
commit 1b7ed56f6f

View File

@ -40,10 +40,11 @@ Testing
- To build test binaries as well, run `cmake -DBUILD_TESTS=OFF .` and after run `make tests` to run them, or you can run separate binaries.
- To use code sanitizers use:
- cmake . -DSANITIZE_ADDRESS=ON
- cmake . -DSANITIZE_MEMORY=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- cmake . -DSANITIZE_THREAD=ON
- cmake . -DSANITIZE_UNDEFINED=ON
- `cmake . -DSANITIZE_ADDRESS=ON`
- `cmake . -DSANITIZE_MEMORY=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++`
- `cmake . -DSANITIZE_THREAD=ON`
- `cmake . -DSANITIZE_UNDEFINED=ON`
- Running valgrind example `valgrind --leak-check=yes --tool=memcheck ./nextpnr-ice40 --json ice40/blinky.json`
Running
--------