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).
This commit is contained in:
Nico Weber 2021-10-15 14:19:12 -04:00 committed by Linus Groh
parent 3a9c7ce9d4
commit b11d660ff8
Notes: sideshowbarker 2024-07-18 02:19:44 +09:00

View file

@ -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)