Lines Matching +full:clang +full:- +full:tsan
2 ---
3 title: "MSAN, ASAN, & TSAN"
4 linkTitle: "MSAN, ASAN, & TSAN"
6 ---
11 Compiling Skia with ASAN, UBSAN, or TSAN can be done with the latest version of Clang.
13 - UBSAN works on Linux, Mac, Android, and Windows, though some checks are platform-specific.
14 - ASAN works on Linux, Mac, Android, and Windows.
15 - TSAN works on Linux and Mac.
16 - MSAN works on Linux[1].
19 with the system-provided C++ standard library, which is usually libstdc++.
23 [1]To compile and run with MSAN, an MSAN-instrumented version of libc++ is needed.
25 of Clang and the instrumented libc++, located in /msan.
27 Downloading Clang binaries (Googlers Only)
28 ------------------------------------------
31 <!--?prettify lang=sh?-->
33 CLANGDIR="${HOME}/clang"
34 python2 infra/bots/assets/clang_linux/download.py -t $CLANGDIR
36 Building Clang binaries from scratch (Other users)
37 ---------------------------
39 <!--?prettify lang=sh?-->
41 CLANGDIR="${HOME}/clang"
43 python2 tools/git-sync-deps
44 CC= CXX= infra/bots/assets/clang_linux/create.py -t "$CLANGDIR"
47 ------------------------------------
49 <!--?prettify lang=sh?-->
51 CLANGDIR="${HOME}/clang"
52 mkdir -p out/msan
53 cat > out/msan/args.gn <<- EOF
54 cc = "${CLANGDIR}/bin/clang"
55 cxx = "${CLANGDIR}/bin/clang++"
56 extra_cflags = [ "-B${CLANGDIR}/bin" ]
58 "-B${CLANGDIR}/bin",
59 "-fuse-ld=lld",
60 "-L${CLANGDIR}/msan",
61 "-Wl,-rpath,${CLANGDIR}/msan" ]
65 python2 tools/git-sync-deps
67 ninja -C out/msan
70 ------------------------------------
72 <!--?prettify lang=sh?-->
74 CLANGDIR="${HOME}/clang"
75 mkdir -p out/asan
76 cat > out/asan/args.gn <<- EOF
77 cc = "${CLANGDIR}/bin/clang"
78 cxx = "${CLANGDIR}/bin/clang++"
80 extra_ldflags = [ "-fuse-ld=lld", "-Wl,-rpath,${CLANGDIR}/lib" ]
82 python2 tools/git-sync-deps
84 ninja -C out/asan
86 Configure and Compile Skia with TSAN
87 ------------------------------------
89 <!--?prettify lang=sh?-->
91 CLANGDIR="${HOME}/clang"
92 mkdir -p out/tsan
93 cat > out/tsan/args.gn <<- EOF
94 cc = "${CLANGDIR}/bin/clang"
95 cxx = "${CLANGDIR}/bin/clang++"
96 sanitize = "TSAN"
98 extra_ldflags = [ "-Wl,-rpath,${CLANGDIR}/lib" ]
100 python2 tools/git-sync-deps
101 bin/gn gen out/tsan
102 ninja -C out/tsan