fixes LineTooLong hints on old compilers (#22412)

* fixes LineTooLong hints on old compilers

* fixes config/nim.cfg
This commit is contained in:
ringabout
2023-08-08 17:53:21 +08:00
committed by GitHub
parent 4c6be40b34
commit bf5d173bc6
3 changed files with 6 additions and 0 deletions

View File

@@ -160,3 +160,4 @@ proc initDefines*(symbols: StringTableRef) =
defineSymbol("nimHasEnsureMove")
defineSymbol("nimUseStrictDefs")
defineSymbol("nimHasNolineTooLong")

View File

@@ -50,3 +50,4 @@ define:useStdoutAsStdmsg
warningAsError[Uninit]:on
warningAsError[ProveInit]:on
@end

View File

@@ -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