mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
21 lines
357 B
Nim
21 lines
357 B
Nim
discard """
|
|
cmd: "nim c --nimcache:build/myNimCache --nimblePath:myNimblePath $file"
|
|
joinable: false
|
|
"""
|
|
|
|
import strutils
|
|
|
|
import std / compilesettings
|
|
|
|
const
|
|
nc = querySetting(nimcacheDir)
|
|
np = querySettingSeq(nimblePaths)
|
|
|
|
static:
|
|
echo nc
|
|
echo np
|
|
|
|
doAssert "myNimCache" in nc
|
|
doAssert "myNimblePath" in np[0]
|
|
doAssert querySetting(backend) == "c"
|