mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
CMake: use ReleaseSmall instead of ReleaseFast
When producing C source code. This enables strip, which should avoid bloat and save compilation time.
This commit is contained in:
parent
7e151cb5e9
commit
a63305bc50
1 changed files with 2 additions and 2 deletions
|
|
@ -732,7 +732,7 @@ set(BUILD_ZIG2_ARGS
|
||||||
zig2
|
zig2
|
||||||
"${ZIG1_WASM_ZST_SOURCE}"
|
"${ZIG1_WASM_ZST_SOURCE}"
|
||||||
build-exe src/main.zig -ofmt=c -lc
|
build-exe src/main.zig -ofmt=c -lc
|
||||||
-OReleaseFast
|
-OReleaseSmall
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
|
@ -750,7 +750,7 @@ set(BUILD_COMPILER_RT_ARGS
|
||||||
compiler_rt
|
compiler_rt
|
||||||
"${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst"
|
"${CMAKE_SOURCE_DIR}/stage1/zig1.wasm.zst"
|
||||||
build-obj lib/compiler_rt.zig -ofmt=c
|
build-obj lib/compiler_rt.zig -ofmt=c
|
||||||
-OReleaseFast
|
-OReleaseSmall
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue