diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-20 11:46:35 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-20 13:08:25 +0100 |
commit | ae43a298144842861bd8532b88aec7178c16ccb3 (patch) | |
tree | 763aa7881f4d71a562b27627d4e76df13b2416c5 /compiler/src/dotty/tools/dotc/config/PathResolver.scala | |
parent | 2f5b1f81bca206e7bfd684a41a2ade787ef2bc19 (diff) | |
download | dotty-ae43a298144842861bd8532b88aec7178c16ccb3.tar.gz dotty-ae43a298144842861bd8532b88aec7178c16ccb3.tar.bz2 dotty-ae43a298144842861bd8532b88aec7178c16ccb3.zip |
Make non-existent compiler options emit warnings instead of failing
Diffstat (limited to 'compiler/src/dotty/tools/dotc/config/PathResolver.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/config/PathResolver.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/config/PathResolver.scala b/compiler/src/dotty/tools/dotc/config/PathResolver.scala index 184b3718a..159989e6f 100644 --- a/compiler/src/dotty/tools/dotc/config/PathResolver.scala +++ b/compiler/src/dotty/tools/dotc/config/PathResolver.scala @@ -144,7 +144,7 @@ object PathResolver { } else { implicit val ctx = (new ContextBase).initialCtx - val ArgsSummary(sstate, rest, errors) = + val ArgsSummary(sstate, rest, errors, warnings) = ctx.settings.processArguments(args.toList, true) errors.foreach(println) val pr = new PathResolver()(ctx.fresh.setSettings(sstate)) |