summary refs log tree commit diff stats
path: root/tools/nimgrep.nim.cfg
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2020-11-09 11:19:06 +0300
committerGitHub <noreply@github.com>2020-11-09 09:19:06 +0100
commit5db181f377e30f3a06e70b48e14337722d4dc114 (patch)
tree4c25825d1ccca102a32c04a58e7771da1ee87ab8 /tools/nimgrep.nim.cfg
parent49f68122e658ba7bcc13340fe157e276b4033a90 (diff)
downloadNim-5db181f377e30f3a06e70b48e14337722d4dc114.tar.gz
Nimgrep improvements 2 (#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 #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 #15318
* switch nimgrep to using --gc:orc
* address review: implement cropping in matches,...
* implement stdin/pipe & revise --help
* address stylistic review & add limitations
Diffstat (limited to 'tools/nimgrep.nim.cfg')
-rw-r--r--tools/nimgrep.nim.cfg9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/nimgrep.nim.cfg b/tools/nimgrep.nim.cfg
index 6d0ea5aad..64d3edc7a 100644
--- a/tools/nimgrep.nim.cfg
+++ b/tools/nimgrep.nim.cfg
@@ -1,5 +1,4 @@
-# The GC is stable enough now:
-
-#--gc:none
-
-
+# don't use --gc:refc because of bug
+# https://github.com/nim-lang/Nim/issues/14138 .
+# --gc:orc and --gc:markandsweep work well.
+--threads:on --gc:orc