[JS] Migrate tests onto IR compiler with outputDir API instead of outputFile
^KT-61117 fixed
This commit is contained in:
committed by
Space Team
parent
e50f6e6bca
commit
08e3cb300a
+1
-3
@@ -100,9 +100,7 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
|
||||
|
||||
@Override
|
||||
protected void configureSpecificCompilerArguments(@NotNull K2JSCompilerArguments arguments, @NotNull List<File> sourceRoots) throws MojoExecutionException {
|
||||
arguments.setOutputFile(outputFile);
|
||||
arguments.setNoStdlib(true);
|
||||
arguments.setMetaInfo(metaInfo);
|
||||
arguments.setOutputDir(new File(outputFile).getParent());
|
||||
arguments.setModuleKind(moduleKind);
|
||||
arguments.setMain(main);
|
||||
arguments.setIrOnly(useIrBackend);
|
||||
|
||||
+1
-2
@@ -86,8 +86,7 @@ public class KotlinTestJSCompilerMojo extends K2JSCompilerMojo {
|
||||
|
||||
super.configureSpecificCompilerArguments(arguments, sourceRoots);
|
||||
|
||||
arguments.setOutputFile(outputFile);
|
||||
arguments.setMetaInfo(metaInfo);
|
||||
arguments.setOutputDir(new File(outputFile).getParent());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user