diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-02-10 09:22:28 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-02-10 09:22:28 +0100 |
commit | 0bb18d1821183b08079e8cff03498454ff0b36f1 (patch) | |
tree | adc3515b64c7114b270f4da2d781f4c920a8d983 /tools/nimsuggest/nimsuggest.nim.cfg | |
parent | 601dc2098df48838f044fa2e68d8227a164a0fc8 (diff) | |
download | Nim-0bb18d1821183b08079e8cff03498454ff0b36f1.tar.gz |
introduce nimMaxHeap define to fight memory overcommit
Diffstat (limited to 'tools/nimsuggest/nimsuggest.nim.cfg')
-rw-r--r-- | tools/nimsuggest/nimsuggest.nim.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/nimsuggest/nimsuggest.nim.cfg b/tools/nimsuggest/nimsuggest.nim.cfg index 949bd18e8..6525a206a 100644 --- a/tools/nimsuggest/nimsuggest.nim.cfg +++ b/tools/nimsuggest/nimsuggest.nim.cfg @@ -8,6 +8,12 @@ path:"$lib/packages/docutils" define:useStdoutAsStdmsg define:nimsuggest +# die when nimsuggest uses more than 4GB: +@if cpu32: + define:"nimMaxHeap=2000" +@else: + define:"nimMaxHeap=4000" +@end #cs:partial #define:useNodeIds |