use lto
This commit is contained in:
parent
ddda38b59d
commit
e56060e623
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@ let output = outdir & "swick"
|
|||
|
||||
task release, "build binary for release":
|
||||
exec "mkdir -p " & outdir
|
||||
exec "nim c -d:release --opt:speed --mm:arc --passC:-ffast-math -o:" & output & " src/swick.nim"
|
||||
exec "strip " & output
|
||||
exec "nim c -d:release --passC:-flto --passL:-flto --passL:-s --opt:speed --mm:orc --passC:-ffast-math -o:" & output & " src/swick.nim"
|
||||
echo "built " & output
|
||||
|
||||
task clean, "clean workspace":
|
||||
|
|
Loading…
Reference in a new issue