Skip to content

Commit

Permalink
fixes LineTooLong hints on old compilers (#22412)
Browse files Browse the repository at this point in the history
* fixes LineTooLong hints on old compilers

* fixes config/nim.cfg

(cherry picked from commit bf5d173)
  • Loading branch information
ringabout authored and narimiran committed Aug 29, 2024
1 parent d6f7625 commit 2214942
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/condsyms.nim
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ proc initDefines*(symbols: StringTableRef) =

defineSymbol("nimHasCastExtendedVm")
defineSymbol("nimHasGenericsOpenSym2")
defineSymbol("nimHasNolineTooLong")
4 changes: 4 additions & 0 deletions config/nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2214942

Please sign in to comment.