mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
fixes LineTooLong hints on old compilers (#22412)
* fixes LineTooLong hints on old compilers * fixes config/nim.cfg
This commit is contained in:
@@ -160,3 +160,4 @@ proc initDefines*(symbols: StringTableRef) =
|
||||
defineSymbol("nimHasEnsureMove")
|
||||
|
||||
defineSymbol("nimUseStrictDefs")
|
||||
defineSymbol("nimHasNolineTooLong")
|
||||
|
||||
@@ -50,3 +50,4 @@ define:useStdoutAsStdmsg
|
||||
warningAsError[Uninit]:on
|
||||
warningAsError[ProveInit]:on
|
||||
@end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user