summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-08 17:53:21 +0800
committerGitHub <noreply@github.com>2023-08-08 17:53:21 +0800
commitbf5d173bc65aea071e5ffdf593f6b8797b56816d (patch)
tree6c0d44e2219e319a4726145d4b94e1e2deefd58e /config
parent4c6be40b340e3ce70b3ed2207db276cb9c661dbe (diff)
downloadNim-bf5d173bc65aea071e5ffdf593f6b8797b56816d.tar.gz
fixes LineTooLong hints on old compilers (#22412)
* fixes LineTooLong hints on old compilers

* fixes config/nim.cfg
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 1470de780..7a2d5c76e 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -14,6 +14,10 @@ cc = gcc
 # additional options always passed to the compiler:
 --parallel_build: "0" # 0 to auto-detect number of processors
 
+@if not nimHasNolineTooLong:
+  hint[LineTooLong]=off
+@end
+
 @if nimHasAmbiguousEnumHint:
   # not needed if hint is a style check
   hint[AmbiguousEnum]=off