fixes LineTooLong hints on old compilers (#22412)

* fixes LineTooLong hints on old compilers

* fixes config/nim.cfg

(cherry picked from commit bf5d173bc6)
This commit is contained in:
ringabout
2023-08-08 17:53:21 +08:00
committed by narimiran
parent d6f7625626
commit 22149422ee
2 changed files with 5 additions and 0 deletions

View File

@@ -161,3 +161,4 @@ proc initDefines*(symbols: StringTableRef) =
defineSymbol("nimHasCastExtendedVm")
defineSymbol("nimHasGenericsOpenSym2")
defineSymbol("nimHasNolineTooLong")

View File

@@ -16,6 +16,10 @@ cc = gcc
#hint[XDeclaredButNotUsed]=off
@if not nimHasNolineTooLong:
hint[LineTooLong]=off
@end
threads:on
# Examples of how to setup a cross-compiler: