Skip to content

Commit 85b47d2

Browse files
committed
CMake: use ReleaseSmall instead of ReleaseFast
When producing C source code. This enables strip, which should avoid bloat and save compilation time.
1 parent 7dd380a commit 85b47d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

738738
add_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

756756
add_custom_command(

0 commit comments

Comments
 (0)