Previously, building LLVM-libc with GWP ASAN was conditioned on the flag
COMPILER_RT_BUILD_GWP_ASAN, which caused issues do to the default value
of the flag being set in the compiler-rt cmake, which is seperate. Now
GWP ASAN is included based on if it exists as a target, which is more
consistent.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/stdlib/CMakeLists.txt | ||
---|---|---|
206 | Using it in an if block does not seem to change the semantics. However, the following works for me: list(APPEND SCUDO_DEPS $<$<TARGET_EXISTS:RTGwpAsan.${LIBC_TARGET_ARCHITECTURE}>:RTGwpAsan.${LIBC_TARGET_ARCHITECTURE}> $<$<TARGET_EXISTS:RTGwpAsanBacktraceLibc.${LIBC_TARGET_ARCHITECTURE}>:RTGwpAsanBacktraceLibc.${LIBC_TARGET_ARCHITECTURE}> $<$<TARGET_EXISTS:RTGwpAsanSegvHandler.${LIBC_TARGET_ARCHITECTURE}>:RTGwpAsanSegvHandler.${LIBC_TARGET_ARCHITECTURE}>) |
Using it in an if block does not seem to change the semantics. However, the following works for me: