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: