Kaynağa Gözat

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).
Nico Weber 3 yıl önce
ebeveyn
işleme
b11d660ff8
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      Meta/Lagom/CMakeLists.txt

+ 1 - 0
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)