This disables use of hwasan interceptors which we do not use on Fuchsia. This explicitly sets the macro for defining the hwasan versions of new/delete.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/hwasan/CMakeLists.txt | ||
---|---|---|
47 | It might be better to force the value of COMPILER_RT_HWASAN_WITH_INTERCEPTORS to OFF instead. But I'll leave the cmake details to Petr. |
compiler-rt/lib/hwasan/CMakeLists.txt | ||
---|---|---|
47 | That would be my preference. The patter we usually use is: if(FUCHSIA) set(COMPILER_RT_HWASAN_WITH_INTERCEPTORS_DEFAULT OFF) else() set(COMPILER_RT_HWASAN_WITH_INTERCEPTORS_DEFAULT ON) endif() set(COMPILER_RT_HWASAN_WITH_INTERCEPTORS ${COMPILER_RT_HWASAN_WITH_INTERCEPTORS_DEFAULT} CACHE BOOL "Enable libc interceptors in HWASan (testing mode)") which would be set in https://github.com/llvm/llvm-project/blob/07c2a912ddf1641b969fdbae3418f77c362f67c6/compiler-rt/CMakeLists.txt#L70. |
It might be better to force the value of COMPILER_RT_HWASAN_WITH_INTERCEPTORS to OFF instead.
But I'll leave the cmake details to Petr.