Command-line tool for JS DCE

Original commit: 8a8fdf1968
This commit is contained in:
Alexey Andreev
2017-04-24 17:20:14 +03:00
parent 8077289242
commit ad224cb6ac
@@ -207,7 +207,7 @@ class JpsKotlinCompilerRunner : KotlinCompilerRunner<JpsCompilerEnvironment>() {
private fun setupK2JsArguments(_outputFile: File, sourceFiles: Collection<File>, _libraries: List<String>, _friendModules: List<String>, settings: K2JSCompilerArguments) {
with(settings) {
noStdlib = true
freeArgs = sourceFiles.map { it.path }
freeArgs = sourceFiles.map { it.path }.toMutableList()
outputFile = _outputFile.path
metaInfo = true
libraries = _libraries.joinToString(File.pathSeparator)