reduce pre-compiler size

This commit is contained in:
pikastech 2022-10-01 18:47:31 +08:00
parent 9eb469e521
commit 3743fe3f88
3 changed files with 6 additions and 0 deletions

View File

@ -11,4 +11,8 @@ path = "src/lib.rs"
[dependencies]
libc = "0.2"
[profile.release]
opt-level = 'z'
lto = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -18,4 +18,6 @@ sh cross-win.sh
cp build-win/pikaByteCodeGen.exe $ROOT/rust-msc-latest-win10.exe
cd $ROOT
strip -s rust-msc-latest-win10.exe
upx -9 rust-msc-latest-win10.exe