Skip to content

Commit 5aec88f

Browse files
committed
[hwasan], [gn]: Fix formatting of hwasan cmake; re-sync gn file for b515d9e
1 parent 5785cbb commit 5aec88f

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

compiler-rt/lib/hwasan/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@ foreach(arch ${HWASAN_SUPPORTED_ARCH})
2424
if(${arch} MATCHES "aarch64")
2525
list(APPEND HWASAN_RTL_SOURCES
2626
hwasan_setjmp_aarch64.S
27-
hwasan_tag_mismatch_aarch64.S)
27+
hwasan_tag_mismatch_aarch64.S
28+
)
2829
endif()
2930
if(${arch} MATCHES "riscv64")
3031
list(APPEND HWASAN_RTL_SOURCES
3132
hwasan_setjmp_riscv64.S
32-
hwasan_tag_mismatch_riscv64.S)
33+
hwasan_tag_mismatch_riscv64.S
34+
)
3335
endif()
3436
if(${arch} MATCHES "x86_64")
3537
list(APPEND HWASAN_RTL_SOURCES
36-
hwasan_setjmp_x86_64.S)
38+
hwasan_setjmp_x86_64.S
39+
)
3740
endif()
3841
endforeach()
3942

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,16 @@ source_set("sources") {
6464
"hwasan_type_test.cpp",
6565
]
6666
if (current_cpu == "arm64") {
67-
sources += [ "hwasan_setjmp_aarch64.S" ]
67+
sources += [
68+
"hwasan_setjmp_aarch64.S",
69+
"hwasan_tag_mismatch_aarch64.S",
70+
]
6871
}
6972
if (current_cpu == "riscv64") {
70-
sources += [ "hwasan_setjmp_riscv64.S" ]
73+
sources += [
74+
"hwasan_setjmp_riscv64.S",
75+
"hwasan_tag_mismatch_riscv64.S",
76+
]
7177
}
7278
if (current_cpu == "x64") {
7379
sources += [ "hwasan_setjmp_x86_64.S" ]

0 commit comments

Comments
 (0)