Skip to content

Commit

Permalink
suppress warnUnusedImportX for --app:lib
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Mar 1, 2020
1 parent 6b7564f commit ebbfae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
defineSymbol(conf.symbols, "executable")
defineSymbol(conf.symbols, "consoleapp")
of "lib":
# should that apply also for other `arg` options?
conf.setNoteDefaults(warnUnusedImportX, false) # similar to issue #13218
incl(conf.globalOptions, optGenDynLib)
excl(conf.globalOptions, optGenGuiApp)
defineSymbol(conf.symbols, "library")
Expand Down

0 comments on commit ebbfae7

Please sign in to comment.