diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -7,6 +7,13 @@ set(SCUDO_CFLAGS) +# FIXME: find cleaner way to agree with GWPAsan flags +if(COMPILER_RT_HAS_FNO_LTO_FLAG) + set(NO_LTO_FLAGS "-fno-lto") +else() + set(NO_LTO_FLAGS "") +endif() + list(APPEND SCUDO_CFLAGS -Werror=conversion -Wall