tcompilesetting.nim 357 B

123456789101112131415161718192021
  1. discard """
  2. cmd: "nim c --nimcache:build/myNimCache --nimblePath:myNimblePath $file"
  3. joinable: false
  4. """
  5. import strutils
  6. import std / compilesettings
  7. const
  8. nc = querySetting(nimcacheDir)
  9. np = querySettingSeq(nimblePaths)
  10. static:
  11. echo nc
  12. echo np
  13. doAssert "myNimCache" in nc
  14. doAssert "myNimblePath" in np[0]
  15. doAssert querySetting(backend) == "c"