From d065c83db366319c80bd23b8625febebf5a67f22 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 14 May 2019 14:53:10 -0700 Subject: [PATCH] Enable LIBCXXABI_SILENT_TERMINATE for libc++abi. Libc++abi's verbose terminate handler is only useful when exceptions are enabled. Disabling it removes a few hundred thousand bytes from many C++ programs. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7d80063..fe82954 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,7 @@ build/libcxxabi.BUILT: build/libcxx.BUILT build/llvm.BUILT -DCMAKE_C_COMPILER_WORKS=ON \ -DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF \ -DLIBCXXABI_ENABLE_SHARED:BOOL=OFF \ + -DLIBCXXABI_SILENT_TERMINATE:BOOL=ON \ -DLIBCXXABI_ENABLE_THREADS:BOOL=OFF \ -DLIBCXXABI_HAS_PTHREAD_API:BOOL=OFF \ -DLIBCXXABI_HAS_EXTERNAL_THREAD_API:BOOL=OFF \