]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/lib/asan/README.txt
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / compiler-rt / lib / asan / README.txt
CommitLineData
1a4d82fc
JJ
1AddressSanitizer RT
2================================
92a42be0 3This directory contains sources of the AddressSanitizer (ASan) runtime library.
1a4d82fc 4
92a42be0 5Directory structure:
1a4d82fc
JJ
6README.txt : This file.
7Makefile.mk : File for make-based build.
8CMakeLists.txt : File for cmake-based build.
92a42be0 9asan_*.{cc,h} : Sources of the asan runtime library.
1a4d82fc
JJ
10scripts/* : Helper scripts.
11tests/* : ASan unit tests.
1a4d82fc
JJ
12
13Also ASan runtime needs the following libraries:
14lib/interception/ : Machinery used to intercept function calls.
92a42be0 15lib/sanitizer_common/ : Code shared between various sanitizers.
1a4d82fc 16
92a42be0
SL
17ASan runtime currently also embeds part of LeakSanitizer runtime for
18leak detection (lib/lsan/lsan_common.{cc,h}).
1a4d82fc 19
92a42be0
SL
20ASan runtime can only be built by CMake. You can run ASan tests
21from the root of your CMake build tree:
1a4d82fc
JJ
22
23make check-asan
24
25For more instructions see:
26http://code.google.com/p/address-sanitizer/wiki/HowToBuild