diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn index a4004bb4c897a..6ecf9e312df93 100644 --- a/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn +++ b/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn @@ -122,6 +122,8 @@ target(tsan_target_type, "rtl") { sources += [ "tsan_rtl_aarch64.S" ] } else if (target_cpu == "powerpc64") { sources += [ "tsan_rtl_ppc64.S" ] + } else if (target_cpu == "loongarch64") { + sources += [ "tsan_rtl_loongarch64.S" ] } else if (target_cpu == "mips64") { sources += [ "tsan_rtl_mips64.S" ] } else if (target_cpu == "s390x") {