From 0439ba99031b7b0690ea2cd49ac517b32c139892 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 22 Jun 2021 14:43:58 -0700 Subject: [PATCH] gn build: Only build the TSan runtime on 64-bit platforms. TSan only supports 64-bit platforms. Differential Revision: https://reviews.llvm.org/D104755 --- llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn index 5e1e9be..eff5bfe 100644 --- a/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn +++ b/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn @@ -7,8 +7,10 @@ group("lib") { deps += [ "//compiler-rt/lib/asan", "//compiler-rt/lib/builtins", - "//compiler-rt/lib/tsan", "//compiler-rt/lib/ubsan_minimal", ] + if (current_cpu == "x64" || current_cpu == "arm64") { + deps += [ "//compiler-rt/lib/tsan" ] + } } } -- 2.7.4