JS: add -Xmetadata-only flag for JS common code modules (KT-33142 fixed)

This commit is contained in:
Anton Bannykh
2019-09-11 15:58:34 +03:00
parent 6a808ce842
commit ead8379c50
16 changed files with 1140 additions and 89 deletions
+1
View File
@@ -6,6 +6,7 @@ where advanced options include:
-Xir-legacy-gradle-plugin-compatibility
Make KLIB generation compatible with legacy gradle plugin
-Xir-produce-only={ klib, js } Type of output to produce. Overrides -meta-info argument.
-Xmetadata-only Generate *.meta.js and *.kjsm files only
-Xtyped-arrays Translate primitive arrays to JS typed arrays
-Xallow-kotlin-package Allow compiling code in package 'kotlin' and allow not requiring kotlin.stdlib in module-info
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
@@ -0,0 +1,11 @@
$TESTDATA_DIR$/separateModules/sepModule1.kt
-meta-info
-Xmetadata-only
-output
$TEMP_DIR$/m1/m1.js
---
$TESTDATA_DIR$/separateModules/sepModule2.kt
-libraries
$TEMP_DIR$/m1
-output
$TEMP_DIR$/m2/m2.js
@@ -0,0 +1 @@
OK
@@ -0,0 +1,5 @@
// EXISTS: m1/m1.meta.js
// ABSENT: m1/m1.js
// EXISTS: m1/m1/m1/m1.kjsm
// EXISTS: m2/m2.js