From b11d660ff82112a2a109dc4e764749c51449aec3 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 15 Oct 2021 14:19:12 -0400 Subject: [PATCH] Lagom: Build with -fno-exceptions We build with this in non-lagom builds, so there's no reason not to use it in lagom builds as well. Reduces the size of liblagom-js.so.0.0.0 from 94M to 90M (from 98352784 to 93831056 bytes to be exact). --- Meta/Lagom/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index f9ec5e77c2..a6e401a59d 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -67,6 +67,7 @@ add_compile_options(-O2) add_compile_options(-Wall -Wextra -Werror) add_compile_options(-fPIC -g) add_compile_options(-Wno-maybe-uninitialized) +add_compile_options(-fno-exceptions) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON)