authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-03 14:21:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-06 12:15:04-07:00
loga63305bc5018afe538255218542e1d0af0393f01
treef34795676b684142bff2676fd41d9e2d8f1142a0
parent7e151cb5e99101012872090480519be65573c9c1

CMake: use ReleaseSmall instead of ReleaseFast

When producing C source code. This enables strip, which should avoid bloat and save compilation time.

1 files changed, 2 insertions(+), 2 deletions(-)

CMakeLists.txt+2-2
......@@ -732,7 +732,7 @@ set(BUILD_ZIG2_ARGS
732732 zig2
733733 "${ZIG1_WASM_ZST_SOURCE}"
734734 build-exe src/main.zig -ofmt=c -lc
735 -OReleaseFast
735 -OReleaseSmall
736736)
737737
738738add_custom_command(
......@@ -750,7 +750,7 @@ set(BUILD_COMPILER_RT_ARGS
750750 compiler_rt
751751 "${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst"
752752 build-obj lib/compiler_rt.zig -ofmt=c
753 -OReleaseFast
753 -OReleaseSmall
754754)
755755
756756add_custom_command(