gn build: Only build the TSan runtime on 64-bit platforms.

TSan only supports 64-bit platforms.

Differential Revision: https://reviews.llvm.org/D104755
This commit is contained in:
Peter Collingbourne 2021-06-22 14:43:58 -07:00
parent 6e962fcc3d
commit 0439ba9903
1 changed files with 3 additions and 1 deletions
llvm/utils/gn/secondary/compiler-rt/lib

View File

@ -7,8 +7,10 @@ group("lib") {
deps += [ deps += [
"//compiler-rt/lib/asan", "//compiler-rt/lib/asan",
"//compiler-rt/lib/builtins", "//compiler-rt/lib/builtins",
"//compiler-rt/lib/tsan",
"//compiler-rt/lib/ubsan_minimal", "//compiler-rt/lib/ubsan_minimal",
] ]
if (current_cpu == "x64" || current_cpu == "arm64") {
deps += [ "//compiler-rt/lib/tsan" ]
}
} }
} }