Skip to content

Commit 1784aca

Browse files
committed
gn build: Sync hwasan assembly file source list.
1 parent 1bc1a79 commit 1784aca

File tree

1 file changed

+15
-2
lines changed
  • llvm/utils/gn/secondary/compiler-rt/lib/hwasan

1 file changed

+15
-2
lines changed

llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,27 @@ source_set("sources") {
5757
"hwasan_poisoning.h",
5858
"hwasan_report.cpp",
5959
"hwasan_report.h",
60-
"hwasan_setjmp_aarch64.S",
61-
"hwasan_setjmp_riscv64.S",
6260
"hwasan_thread.cpp",
6361
"hwasan_thread.h",
6462
"hwasan_thread_list.cpp",
6563
"hwasan_thread_list.h",
6664
"hwasan_type_test.cpp",
6765
]
66+
if (current_cpu == "arm64") {
67+
sources += [
68+
"hwasan_setjmp_aarch64.S",
69+
"hwasan_tag_mismatch_aarch64.S",
70+
]
71+
}
72+
if (current_cpu == "riscv64") {
73+
sources += [
74+
"hwasan_setjmp_riscv64.S",
75+
"hwasan_tag_mismatch_riscv64.S",
76+
]
77+
}
78+
if (current_cpu == "x64") {
79+
sources += [ "hwasan_setjmp_x86_64.S" ]
80+
}
6881
}
6982

7083
source_set("cxx_sources") {

0 commit comments

Comments
 (0)