Skip to content

Commit

Permalink
0.8.7: closes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Jun 17, 2020
1 parent 40e54f0 commit 954a018
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nimph.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.8.6"
version = "0.8.7"
author = "disruptek"
description = "nim package handler from the future"
license = "MIT"
Expand Down
11 changes: 9 additions & 2 deletions src/nimph/config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,20 @@ type
path: string
js: JsonNode

template excludeAllNotes(config: ConfigRef; n: typed) =
config.notes.excl n
when compiles(config.mainPackageNotes):
config.mainPackageNotes.excl n
when compiles(config.foreignPackageNotes):
config.foreignPackageNotes.excl n

template setDefaultsForConfig(result: ConfigRef) =
# maybe we should turn off configuration hints for these reads
when defined(debugPath):
result.notes.incl hintPath
elif not defined(debug):
result.notes.excl hintConf
result.notes.excl hintLineTooLong
excludeAllNotes(result, hintConf)
excludeAllNotes(result, hintLineTooLong)

proc parseConfigFile*(path: string): Option[ConfigRef] =
## use the compiler to parse a nim.cfg without changing to its directory
Expand Down

0 comments on commit 954a018

Please sign in to comment.