Skip to content

Commit

Permalink
tests: added nimble command to build the shell with nimprofiler support
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 4179204ea056e94fb057847e69a48e19109fa9b307b8f996c5d22d6daab4f84e
  • Loading branch information
thindil committed Jan 15, 2024
1 parent 99079ad commit 1a307cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nish.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ task releasewindows, "builds the project in release mode for Windows 64-bit":
exec "nimble install -d -y"
exec "nimassets -d=help -o=" & srcDir & DirSep & "helpcontent.nim"
exec "nim c -d:mingw --os:windows --cpu:amd64 --amd64.windows.gcc.exe:x86_64-w64-mingw32-gcc --amd64.windows.gcc.linkerexe=x86_64-w64-mingw32-gcc -d:release --passc:-flto --passl:-s --outdir:" & binDir & " " & srcDir & DirSep & "nish.nim"

task analyze, "builds the project in analyze mode (release with nimprofiler support)":
exec "nimassets -d=help -o=" & srcDir & DirSep & "helpcontent.nim"
exec "nim c -d:release --profiler:on --stackTrace:on --passc:-flto --passl:-s --outdir:" & binDir & " " &
srcDir & DirSep & "nish.nim"

0 comments on commit 1a307cd

Please sign in to comment.