HomePhabricator

[CMake][Fuchsia] Define asan+noexcept multilib

Authored by phosek on Jul 13 2019, 1:07 AM.

Description

[CMake][Fuchsia] Define asan+noexcept multilib

Using noexcept multilib with -fno-exceptions can lead to significant
space savings when statically linking libc++abi because we don't need
all the unwinding and demangling code.

When compiling with ASan, we already get a lot of overhead from the
instrumentation itself, when statically linking libc++abi, that overhead
is even larger.

Having the noexcept variant for ASan can help significantly, we've seen
more than 50% size reduction in our system image, which offsets the cost
of having to build another multilib.

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

llvm-svn: 365994

Details

Committed
phosekJul 13 2019, 1:07 AM
Differential Revision
D64140: [CMake][Fuchsia] Define asan+noexcept multilib
Parents
rG36fbd0da5fb7: Simplify with llvm::is_contained. NFC
Branches
Unknown
Tags
Unknown