Skip to content

Commit

Permalink
Merge pull request #886 from dwijnand/fix-path-slash-failure-in-pickl…
Browse files Browse the repository at this point in the history
…e-updates-jar

Fix path slash failure in pickle updates jar
  • Loading branch information
eed3si9n committed Aug 18, 2020
2 parents 6078b60 + 637559c commit 4bcd96a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ final class MixedAnalyzingCompiler(
val scalacOpts = pickleJarPair match {
case Some((originalJar, updatesJar)) =>
val path = originalJar.toString
// ^ Path#toString uses '\' on Windows
// but the path could've been specified with '/' in scalacOptions
val fwdSlashPath = path.replace('\\', '/')
config.currentSetup.options.scalacOptions.map {
case s if s == path => updatesJar.toString
case s => s
case s if s == path || s == fwdSlashPath => updatesJar.toString
case s => s
}
case _ => config.currentSetup.options.scalacOptions
}
Expand Down

0 comments on commit 4bcd96a

Please sign in to comment.