1MSAN, ASAN, & TSAN 2================== 3 4*Testing Skia with memory, address, and thread santizers.* 5 6Get Clang binaries 7------------------ 8 9 CLANGDIR="${HOME}/clang" 10 11 python tools/git-sync-deps 12 CC= CXX= infra/bots/assets/clang_linux/create.py -t "$CLANGDIR" 13 14Configure and Compile Skia with MSAN 15------------------------------------ 16 17 CLANGDIR="${HOME}/clang" 18 mkdir -p out/msan 19 cat > out/msan/args.gn <<- EOF 20 cc = "${CLANGDIR}/bin/clang" 21 cxx = "${CLANGDIR}/bin/clang++" 22 extra_ldflags = [ "-Wl,-rpath", "-Wl,${CLANGDIR}/msan" ] 23 sanitize = "MSAN" 24 skia_use_fontconfig = false 25 EOF 26 python tools/git-sync-deps 27 bin/gn gen out/msan 28 ninja -C out/msan 29 30Configure and Compile Skia with ASAN 31------------------------------------ 32 33 CLANGDIR="${HOME}/clang" 34 mkdir -p out/asan 35 cat > out/asan/args.gn <<- EOF 36 cc = "${CLANGDIR}/bin/clang" 37 cxx = "${CLANGDIR}/bin/clang++" 38 sanitize = "ASAN" 39 EOF 40 python tools/git-sync-deps 41 bin/gn gen out/asan 42 ninja -C out/asan 43 44Configure and Compile Skia with TSAN 45------------------------------------ 46 47 CLANGDIR="${HOME}/clang" 48 mkdir -p out/tsan 49 cat > out/tsan/args.gn <<- EOF 50 cc = "${CLANGDIR}/bin/clang" 51 cxx = "${CLANGDIR}/bin/clang++" 52 sanitize = "TSAN" 53 is_debug = false 54 EOF 55 python tools/git-sync-deps 56 bin/gn gen out/tsan 57 ninja -C out/tsan 58 59 60