Skip to content

Commit

Permalink
Updated nimcache dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Aug 25, 2024
1 parent 7a20d96 commit 15409ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions absytree.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ 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"
selfExec fmt"c -o:astd{exe} --debuginfo:on --debugger:native --lineDir:off -d:exposeScriptingApi -d:absytreeBuildWasmtime --passC:-std=gnu11 --nimcache:nimcache/debug {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: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 --nimcache:nimcache/debug {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"

task buildDesktopWindows, "Build the desktop version for windows":
Expand Down
16 changes: 13 additions & 3 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,19 @@ patchFile("stdlib", "excpt", "patches/excpt")
# switch("d", "traceArc")
# switch("d", "nimTypeNames")


switch("nimcache", "nimcache")

when defined(linux):
switch("nimcache", "nimcache/linux")
else:
switch("nimcache", "nimcache/windows")

# todo: build with clang
# switch("cc", "clang")
# switch("passC", "-fno-omit-frame-pointer -g -Wno-incompatible-function-pointer-types")
# switch("passC", "-flto")
# switch("passC", "-fno-omit-frame-pointer -ggdb3 -g -Wno-incompatible-function-pointer-types -gcodeview -fuse-ld=lld")
# switch("d", "enableSystemClipboard=false")
# switch("lineDir", "off")
# switch("profiler", "on")

# begin Nimble config (version 2)
--noNimblePath
Expand Down

0 comments on commit 15409ce

Please sign in to comment.