From 15409cec595b117d45b7019407a93a8cb5e85497 Mon Sep 17 00:00:00 2001 From: Nimaoth Date: Sun, 25 Aug 2024 13:25:36 +0200 Subject: [PATCH] Updated nimcache dirs --- absytree.nimble | 4 ++-- config.nims | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/absytree.nimble b/absytree.nimble index 4f0432d9..0296aff4 100644 --- a/absytree.nimble +++ b/absytree.nimble @@ -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": diff --git a/config.nims b/config.nims index 889e32ef..67a27a18 100644 --- a/config.nims +++ b/config.nims @@ -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