From 22149422eeae9303084a0d40adfca30cfa914968 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 8 Aug 2023 17:53:21 +0800 Subject: [PATCH] fixes LineTooLong hints on old compilers (#22412) * fixes LineTooLong hints on old compilers * fixes config/nim.cfg (cherry picked from commit bf5d173bc65aea071e5ffdf593f6b8797b56816d) --- compiler/condsyms.nim | 1 + config/nim.cfg | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index cdee96e5e0..2582976b8f 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -161,3 +161,4 @@ proc initDefines*(symbols: StringTableRef) = defineSymbol("nimHasCastExtendedVm") defineSymbol("nimHasGenericsOpenSym2") + defineSymbol("nimHasNolineTooLong") diff --git a/config/nim.cfg b/config/nim.cfg index 0723d8e138..a096b4eb6f 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -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: