Skip to content

Commit

Permalink
Added more tasks for building debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Aug 24, 2024
1 parent fe29f75 commit 865ee90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion absytree.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ task buildTerminal, "Build the terminal version":
task buildTerminalDebug, "Build the terminal version (debug)":
selfExec fmt"c -o:ast{exe} --debuginfo:on --debugger:native --lineDir:off -d:exposeScriptingApi -d:absytreeBuildWasmtime -d:enableTerminal -d:enableGui=false --passC:-std=gnu11 {getCommandLineParams()} ./src/absytree.nim"

task buildDebug, "Build the debug version":
selfExec fmt"c -o:astd{exe} --debuginfo:on --debugger:native --lineDir:off -d:exposeScriptingApi -d:absytreeBuildWasmtime --passC:-std=gnu11 {getCommandLineParams()} ./src/absytree.nim"

task buildDebugVcc, "Build the debug version":
selfExec fmt"c -o:astd{exe} -d:debug -u:release --linetrace:on --stacktrace:on --debuginfo:on -d:treesitterBuiltins= -d:futureLogging --debugger:native --nimcache:C:/nc -d:enableSystemClipboard=false --cc:vcc --lineDir:off -d:exposeScriptingApi -d:absytreeBuildWasmtime {getCommandLineParams()} ./src/absytree.nim"

task buildDesktopDebug, "Build the desktop version (debug)":
selfExec fmt"c -o:astd{exe} -d:exposeScriptingApi -d:absytreeBuildWasmtime --debuginfo:on -g -D:debug --lineDir:on --nilChecks:on --panics:off --passC:-g --passC:-std=gnu11 --stacktrace:on --linetrace:on {getCommandLineParams()} ./src/absytree.nim"
# selfExec fmt"c -o:ast{exe} -d:exposeScriptingApi -d:absytreeBuildWasmtime --objChecks:off --fieldChecks:off --rangeChecks:off --boundChecks:off --overflowChecks:off --floatChecks:off --nanChecks:off --infChecks:off {getCommandLineParams()} ./src/absytree.nim"
Expand Down Expand Up @@ -152,4 +158,4 @@ task buildNimConfigWasmAll, "Compile the nim script config file to wasm":
exec fmt"nimble buildNimConfigWasm vscode_config_plugin.nim"

task flamegraph, "Perf/flamegraph":
exec "PERF=/usr/lib/linux-tools/5.4.0-186-generic/perf ~/.cargo/bin/flamegraph -o flamegraph-lsp-new.svg -- astt -s:linux.absytree-session"
exec "PERF=/usr/lib/linux-tools/5.4.0-186-generic/perf ~/.cargo/bin/flamegraph -o flamegraph.svg -- asttd -s:linux.absytree-session"

0 comments on commit 865ee90

Please sign in to comment.