-
Notifications
You must be signed in to change notification settings - Fork 0
/
vls.nimble
62 lines (43 loc) · 1.66 KB
/
vls.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Package
version = "0.3.1"
author = "Marcus Eriksson"
description = "A Verilog IEEE 1364-2005 language server written in Nim."
license = "MIT"
src_dir = "src"
bin = @["vls"]
# Dependencies
requires "nim >= 1.4.0"
requires "vparse >= 0.3.1"
requires "vltoml >= 0.2.0"
requires "vlint >= 0.1.0"
task dbuild, "build with tracing":
exec("nimble build -d:logdebug")
task orcbuild, "build with ORC":
exec("nimble build --gc:orc")
task dorcbuild, "build with ORC and tracing":
exec("nimble build -d:logdebug --gc:orc")
task dinstall, "install":
exec("nimble install --passNim:-d:logdebug")
task orcinstall, "build with ORC and install":
exec("nimble install --passNim:--gc:orc --passNim:-d:danger")
task dorcinstall, "build with ORC and tracing and install":
exec("nimble install --passNim:--gc:orc --passNim:-d:danger --passNim:-d:logdebug")
task test, "Run the test suite":
exec("nimble protocoltests")
exec("nimble featuretests")
task protocoltests, "Run the protocol test suite":
with_dir("tests/protocol"):
exec("nim c --hints:off -r trecv")
exec("nim c --hints:off -r tsend")
task featuretests, "Run the language feature test suite":
with_dir("tests/features"):
exec("nim c --hints:off -r tsyntax")
exec("nim c --hints:off -r tdiagnostics")
exec("nim c --hints:off -r tdeclaration")
exec("nim c --hints:off -r treferences")
exec("nim c --hints:off -r tcompletion")
exec("nim c --hints:off -r tdocument_symbol")
exec("nim c --hints:off -r trename")
exec("nim c --hints:off -r tdocument_highlight")
exec("nim c --hints:off -r thover")
exec("nim c --hints:off -r tsignature_help")