HomePhabricator

[Scudo][CMake] Add -fno-lto to Scudo libraries

Authored by aeubanks on Jul 28 2020, 2:29 PM.

Description

[Scudo][CMake] Add -fno-lto to Scudo libraries

-fno-lto is in SANITIZER_COMMON_CFLAGS but not here.
Don't use SANITIZER_COMMON_CFLAGS because of performance issues.
See https://bugs.llvm.org/show_bug.cgi?id=46838.

Fixes
$ ninja TScudoCUnitTest-i386-Test
on an LLVM build with -DLLVM_ENABLE_LTO=Thin.
check-scudo now passes.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D84805

Details

Committed
aeubanksJul 29 2020, 10:24 AM
Reviewer
cryptoad
Differential Revision
D84805: [Scudo][CMake] Add -fno-lto to Scudo libraries
Parents
rGcd890944ad34: [PGO] Remove insignificant function hash values from some tests.
Branches
Unknown
Tags
Unknown