On ubuntu 18.04: sudo apt install make cmake build-essential bison ninja-build
- run
make setupgrad - run
make setuptaintto build version with taint - run
make cleantaintto reset source to grad version - run
make gradormake taintto rebuild when making changes.
- To build test programs, cd to
testsdir and copytests/conf/common.inctotestsdir. ModifyPATH_TESTS_ROOTandLLVM_BUILD_DIRto your tests and build dirs in thecommon.incfile in yourtestsdir. - run
makein 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 testto run all tests, ormaketo 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.