std/compilesettings implementation (#13584)
* Implement compileSetting() and compileSettingSeq() * Change from magic to vmop * better design for querySetting Co-authored-by: genotrance <dev@genotrance.com>
This commit is contained in:
parent
0809098971
commit
614fb7567c
4 changed files with 118 additions and 0 deletions
19
tests/vm/tcompilesetting.nim
Normal file
19
tests/vm/tcompilesetting.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
discard """
|
||||
cmd: "nim c --nimcache: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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue