Skip to content

Commit

Permalink
[hwasan], [gn]: Fix formatting of hwasan cmake; re-sync gn file for b…
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Oct 19, 2024
1 parent 5785cbb commit 5aec88f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 6 additions & 3 deletions compiler-rt/lib/hwasan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ foreach(arch ${HWASAN_SUPPORTED_ARCH})
if(${arch} MATCHES "aarch64")
list(APPEND HWASAN_RTL_SOURCES
hwasan_setjmp_aarch64.S
hwasan_tag_mismatch_aarch64.S)
hwasan_tag_mismatch_aarch64.S
)
endif()
if(${arch} MATCHES "riscv64")
list(APPEND HWASAN_RTL_SOURCES
hwasan_setjmp_riscv64.S
hwasan_tag_mismatch_riscv64.S)
hwasan_tag_mismatch_riscv64.S
)
endif()
if(${arch} MATCHES "x86_64")
list(APPEND HWASAN_RTL_SOURCES
hwasan_setjmp_x86_64.S)
hwasan_setjmp_x86_64.S
)
endif()
endforeach()

Expand Down
10 changes: 8 additions & 2 deletions llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ source_set("sources") {
"hwasan_type_test.cpp",
]
if (current_cpu == "arm64") {
sources += [ "hwasan_setjmp_aarch64.S" ]
sources += [
"hwasan_setjmp_aarch64.S",
"hwasan_tag_mismatch_aarch64.S",
]
}
if (current_cpu == "riscv64") {
sources += [ "hwasan_setjmp_riscv64.S" ]
sources += [
"hwasan_setjmp_riscv64.S",
"hwasan_tag_mismatch_riscv64.S",
]
}
if (current_cpu == "x64") {
sources += [ "hwasan_setjmp_x86_64.S" ]
Expand Down

0 comments on commit 5aec88f

Please sign in to comment.