[llvm] 0439ba9 - gn build: Only build the TSan runtime on 64-bit platforms.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 17:51:29 PDT 2021
Author: Peter Collingbourne
Date: 2021-06-22T17:51:00-07:00
New Revision: 0439ba99031b7b0690ea2cd49ac517b32c139892
URL: https://github.com/llvm/llvm-project/commit/0439ba99031b7b0690ea2cd49ac517b32c139892
DIFF: https://github.com/llvm/llvm-project/commit/0439ba99031b7b0690ea2cd49ac517b32c139892.diff
LOG: gn build: Only build the TSan runtime on 64-bit platforms.
TSan only supports 64-bit platforms.
Differential Revision: https://reviews.llvm.org/D104755
Added:
Modified:
llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
index 5e1e9bec01a0..eff5bfebbb14 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" ]
+ }
}
}
More information about the llvm-commits
mailing list