From 15a8996d57eb201cdc1db2e1e79faba4a3530636 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 14 Mar 2017 08:36:57 +0100 Subject: valgrind support for nim --- koch.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'koch.nim') diff --git a/koch.nim b/koch.nim index 7c0193917..37b33c5ac 100644 --- a/koch.nim +++ b/koch.nim @@ -512,6 +512,14 @@ proc pushCsources() = finally: setCurrentDir(cwd) +proc valgrind(cmd: string) = + exec("nim c " & cmd) + var i = cmd.len-1 + while i >= 0 and cmd[i] != ' ': dec i + let file = if i >= 0: substr(cmd, i+1) else: cmd + let supp = getAppDir() / "tools" / "nimgrind.supp" + exec("valgrind --suppressions=" & supp & " " & changeFileExt(file, "")) + proc showHelp() = quit(HelpText % [VersionAsString & spaces(44-len(VersionAsString)), CompileDate, CompileTime], QuitSuccess) @@ -548,5 +556,6 @@ of cmdArgument: of "nimsuggest": bundleNimsuggest(buildExe=true) of "tools": buildTools(existsDir(".git")) of "pushcsource", "pushcsources": pushCsources() + of "valgrind": valgrind(op.cmdLineRest) else: showHelp() of cmdEnd: showHelp() -- cgit 1.4.1-2-gfad0 08f27fd32be2b4219'>refs log tree commit diff stats
path: root/getwtxt.yml
blob: 460ff4efd693223a3722f7f1ef98a5bfc3472ce4 (plain) (blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
75