aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/config/PathResolver.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-02-20 11:46:35 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-02-20 13:08:25 +0100
commitae43a298144842861bd8532b88aec7178c16ccb3 (patch)
tree763aa7881f4d71a562b27627d4e76df13b2416c5 /compiler/src/dotty/tools/dotc/config/PathResolver.scala
parent2f5b1f81bca206e7bfd684a41a2ade787ef2bc19 (diff)
downloaddotty-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.scala2
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))