On ubuntu 18.04: sudo apt install make cmake build-essential bison ninja-build
- run
make setupgrad
- run
make setuptaint
to build version with taint - run
make cleantaint
to reset source to grad version - run
make grad
ormake taint
to rebuild when making changes.
- To build test programs, cd to
tests
dir and copytests/conf/common.inc
totests
dir. ModifyPATH_TESTS_ROOT
andLLVM_BUILD_DIR
to your tests and build dirs in thecommon.inc
file in yourtests
dir. - run
make
in the tests dir to build dfsan, grsan, and uninstrumented versions of all test programs. You can also build individual programs from their directories.
- Tests are located in
tests/autotest
- Run
make test
to run all tests, ormake
to just build them. - Any file starting with
test_
will be run as a test, and will show up as an error if it fails an assertion or otherwise returns nonzero.