@@ -47,7 +47,7 @@ object Scalajsld {
4747 sourceMap : Boolean = false ,
4848 relativizeSourceMap : Option [URI ] = None ,
4949 checkIR : Boolean = false ,
50- stdLib : Option [File ] = None ,
50+ stdLib : Seq [File ] = Nil ,
5151 jsHeader : String = " " ,
5252 logLevel : Level = Level .Info
5353 )
@@ -164,12 +164,12 @@ object Scalajsld {
164164 .action { (x, c) => c.copy(relativizeSourceMap = Some (x.toURI)) }
165165 .text(" Relativize source map with respect to given path (meaningful with -s)" )
166166 opt[Unit ](" noStdlib" )
167- .action { (_, c) => c.copy(stdLib = None ) }
167+ .action { (_, c) => c.copy(stdLib = Nil ) }
168168 .text(" Don't automatically include Scala.js standard library" )
169- opt[File ](" stdlib" )
169+ opt[String ](" stdlib" )
170170 .valueName(" <scala.js stdlib jar>" )
171171 .hidden()
172- .action { (x, c) => c.copy(stdLib = Some (x) ) }
172+ .action { (x, c) => c.copy(stdLib = x.split( File .pathSeparator).map( new File (_)).toSeq ) }
173173 .text(" Location of Scala.js standard libarary. This is set by the " +
174174 " runner script and automatically prepended to the classpath. " +
175175 " Use -n to not include it." )
@@ -208,7 +208,7 @@ object Scalajsld {
208208 }
209209
210210 for (options <- parser.parse(args, Options ())) {
211- val classpath = (options.stdLib.toList ++ options.cp).map(_.toPath())
211+ val classpath = (options.stdLib ++ options.cp).map(_.toPath())
212212 val moduleInitializers = options.moduleInitializers
213213
214214 val semantics =
0 commit comments