Skip to content

Commit a941e2c

Browse files
a-mrirdassis
authored andcommitted
Nimgrep improvements 2 (nim-lang#15612)
* nimgrep: speed up by threads and Channels * nimgrep: add --bin, --text, --count options * nimgrep: add --sortTime option * allow Peg in all matches including --includeFile, --excludeFile, --excludeDir * add --match and --noMatch options * add --includeDir option * add --limit (-m) and --onlyAscii (-o) options * fix performance regression introduced in nimgrep improvements nim-lang#12779 * better error handling * add option --fit * fix groups in --replace * fix flushing, --replace, improve --count * use "." as the default directory, not full path * fix --fit for Windows * force target to C for macosx * validate non-negative int input for options nim-lang#15318 * switch nimgrep to using --gc:orc * address review: implement cropping in matches,... * implement stdin/pipe & revise --help * address stylistic review & add limitations
1 parent 922e34e commit a941e2c

File tree

3 files changed

+1049
-297
lines changed

3 files changed

+1049
-297
lines changed

testament/categories.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ proc debuggerTests(r: var TResults, cat: Category, options: string) =
262262
if fileExists("tools/nimgrep.nim"):
263263
var t = makeTest("tools/nimgrep", options & " --debugger:on", cat)
264264
t.spec.action = actionCompile
265+
# force target to C because of MacOS 10.15 SDK headers bug
266+
# https://github.com/nim-lang/Nim/pull/15612#issuecomment-712471879
267+
t.spec.targets = { targetC }
265268
testSpec r, t
266269

267270
# ------------------------- JS tests ------------------------------------------

0 commit comments

Comments
 (0)