From a63305bc5018afe538255218542e1d0af0393f01 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 3 Dec 2022 14:21:35 -0700 Subject: [PATCH] CMake: use ReleaseSmall instead of ReleaseFast When producing C source code. This enables strip, which should avoid bloat and save compilation time. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e9a0a3fac..5365a291b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -732,7 +732,7 @@ set(BUILD_ZIG2_ARGS zig2 "${ZIG1_WASM_ZST_SOURCE}" build-exe src/main.zig -ofmt=c -lc - -OReleaseFast + -OReleaseSmall ) add_custom_command( @@ -750,7 +750,7 @@ set(BUILD_COMPILER_RT_ARGS compiler_rt "${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst" build-obj lib/compiler_rt.zig -ofmt=c - -OReleaseFast + -OReleaseSmall ) add_custom_command(