[Gradle, JS] IR by default and report warnings for using legacy compiler

- just legacy - report warning about deprecation
- both - report warning about deprecation of legacy
- no compiler explicitly chosen - error about explicit setting compiler

warn from cli legacy compiler

nowarn flag - kotlin.js.compiler.nowarn

KT-42326
KT-53074
This commit is contained in:
Ilya Goncharov
2022-09-16 09:48:41 +00:00
committed by Space
parent b53d6d0d7e
commit bf8681296b
101 changed files with 327 additions and 245 deletions
+1
View File
@@ -1,4 +1,5 @@
compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/jslib-example/LibraryExample.kt
-Xlegacy-deprecated-no-warn
-meta-info
-output
$TEMP_DIR$/jslib-example.js
+1
View File
@@ -1,4 +1,5 @@
$TEMP_DIR$
-Xlegacy-deprecated-no-warn
-no-stdlib
-output
$TESTDATA_DIR$
+1
View File
@@ -1,3 +1,4 @@
$TESTDATA_DIR$/inlineCycle.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$
+1
View File
@@ -35,6 +35,7 @@ where advanced options include:
-Xir-safe-external-boolean Safe access via Boolean() to Boolean properties in externals to safely cast falsy values.
-Xir-safe-external-boolean-diagnostic={log|exception}
Enable runtime diagnostics when access safely to boolean in external declarations
-Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler
-Xmetadata-only Generate *.meta.js and *.kjsm files only
-Xpartial-linkage Allow unlinked symbols
-Xrepositories=<path> Paths to additional places where libraries could be found
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-kotlin-home
$TESTDATA_DIR$
-output
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/../kotlinPackage.kt
-no-stdlib
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/languageVersion.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
-language-version
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/withLib.kt
-Xlegacy-deprecated-no-warn
-libraries
not/existing/path
-output
@@ -1,10 +1,12 @@
$TESTDATA_DIR$/separateModules/sepModule1.kt
-Xlegacy-deprecated-no-warn
-meta-info
-Xmetadata-only
-output
$TEMP_DIR$/m1/m1.js
---
$TESTDATA_DIR$/separateModules/sepModule2.kt
-Xlegacy-deprecated-no-warn
-libraries
$TEMP_DIR$/m1
-output
+2
View File
@@ -1,9 +1,11 @@
$TESTDATA_DIR$/separateModules/sepModule1.kt
-Xlegacy-deprecated-no-warn
-meta-info
-output
$TEMP_DIR$/m1/m.js
---
$TESTDATA_DIR$/separateModules/sepModule2.kt
-Xlegacy-deprecated-no-warn
-libraries
$TEMP_DIR$/m1
-output
@@ -1,9 +1,11 @@
$TESTDATA_DIR$/separateModules/sepModule3.kt
-Xlegacy-deprecated-no-warn
-meta-info
-output
$TEMP_DIR$/m3/m.js
---
$TESTDATA_DIR$/separateModules/sepModule4.kt
-Xlegacy-deprecated-no-warn
-libraries
$TEMP_DIR$/m3
-output
+1
View File
@@ -1,4 +1,5 @@
not/existing/path
-no-stdlib
-Xlegacy-deprecated-no-warn
-output
$TESTDATA_DIR$
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/withLib.kt
-Xlegacy-deprecated-no-warn
-libraries
compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib
-output
+1
View File
@@ -1,3 +1,4 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-output
$TESTDATA_DIR$
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
-output-postfix
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
-output-prefix
+1
View File
@@ -1,3 +1,4 @@
$TESTDATA_DIR$/reifiedIntersectionType.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
+1
View File
@@ -1,3 +1,4 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-output
$TEMP_DIR$/out.js
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/sourceMap.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-prefix
./
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/sourceMapCharEscape.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-embed-sources
always
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/sourceMapDuplicatePath/
-Xlegacy-deprecated-no-warn
-source-map
-source-map-base-dirs
$TESTDATA_DIR$/sourceMapDuplicatePath/foo:$TESTDATA_DIR$/sourceMapDuplicatePath/bar
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/sourceMap.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-prefix
./
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/sourceMap.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-prefix
/localhost/src/
+2
View File
@@ -1,10 +1,12 @@
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/src/lib.kt
-Xlegacy-deprecated-no-warn
-source-map
-meta-info
-output
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/lib.js
---
$TESTDATA_DIR$/sourceMapRelativeRoot/main/src/main.kt
-Xlegacy-deprecated-no-warn
-libraries
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/
-source-map
+1
View File
@@ -1,5 +1,6 @@
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-prefix
./
+1
View File
@@ -1,5 +1,6 @@
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-base-dirs
$TESTDATA_DIR$/
+1
View File
@@ -2,6 +2,7 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
$TESTDATA_DIR$/sourceMapRoot/bar/baz/file3.kt
$TESTDATA_DIR$/sourceMapRoot/foo/baz/file4.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-base-dirs
$TESTDATA_DIR$/sourceMapRoot/foo
+1
View File
@@ -1,5 +1,6 @@
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
-Xlegacy-deprecated-no-warn
-source-map
-source-map-base-dirs
$TESTDATA_DIR$/foo:$TESTDATA_DIR$/bar
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/../warnings.kt
-Xlegacy-deprecated-no-warn
-nowarn
-output
$TEMP_DIR$/out.js
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/withLib.kt
-Xlegacy-deprecated-no-warn
-libraries
$TESTDATA_DIR$/folderAsLib
-output
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/withLib.kt
-Xlegacy-deprecated-no-warn
-libraries
$TESTDATA_DIR$/lib/LibraryExample.jar
-output
+1
View File
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/simple2js.kt
-Xlegacy-deprecated-no-warn
-no-stdlib
-libraries
$TESTDATA_DIR$/wrongAbiVersionLib/wrongAbiLib.meta.js