]> granicus.if.org Git - clang/commit
[CMake][Fuchsia] Define asan+noexcept multilib
authorPetr Hosek <phosek@chromium.org>
Sat, 13 Jul 2019 08:07:10 +0000 (08:07 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 13 Jul 2019 08:07:10 +0000 (08:07 +0000)
commitf37d6ae9c0df85bb95ba7dc459b2afb4d1dcacd6
tree07f300453c0dd493a7719918f8e81673891716bf
parent4962d4e375833728b217952abe6662cc02b3382f
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365994 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/caches/Fuchsia-stage2.cmake
lib/Driver/ToolChains/Fuchsia.cpp
test/Driver/Inputs/basic_fuchsia_tree/lib/aarch64-fuchsia/c++/asan+noexcept/libc++.so [new file with mode: 0644]
test/Driver/Inputs/basic_fuchsia_tree/lib/x86_64-fuchsia/c++/asan+noexcept/libc++.so [new file with mode: 0644]
test/Driver/fuchsia.cpp