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...@@ -732,7 +732,7 @@ set(BUILD_ZIG2_ARGS
732 zig2732 zig2
733 "${ZIG1_WASM_ZST_SOURCE}"733 "${ZIG1_WASM_ZST_SOURCE}"
734 build-exe src/main.zig -ofmt=c -lc734 build-exe src/main.zig -ofmt=c -lc
735 -OReleaseFast735 -OReleaseSmall
736)736)
737 737
738add_custom_command(738add_custom_command(
...@@ -750,7 +750,7 @@ set(BUILD_COMPILER_RT_ARGS...@@ -750,7 +750,7 @@ set(BUILD_COMPILER_RT_ARGS
750 compiler_rt750 compiler_rt
751 "${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst"751 "${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst"
752 build-obj lib/compiler_rt.zig -ofmt=c752 build-obj lib/compiler_rt.zig -ofmt=c
753 -OReleaseFast753 -OReleaseSmall
754)754)
755 755
756add_custom_command(756add_custom_command(