Change format of -X arguments to require value after '='

Report a warning when an argument is passed in the old form (with the
whitespace)

 #KT-17264 Fixed
This commit is contained in:
Alexander Udalov
2017-04-05 16:42:43 +03:00
parent 78c0111c6e
commit f4b6db4dc0
22 changed files with 100 additions and 73 deletions
@@ -17,7 +17,7 @@ sourceSets {
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xdump-declarations-to', "${buildDir}/cases-declarations.json"]
freeCompilerArgs = ["-Xdump-declarations-to=${buildDir}/cases-declarations.json"]
}
}
@@ -12,7 +12,7 @@ class KotlinJvmOptionsTest {
"-Xreport-perf",
"-Xallow-kotlin-package",
"-Xmultifile-parts-inherit",
"-Xdump-declarations-to", "declarationsPath",
"-Xdump-declarations-to=declarationsPath",
"-script-templates", "a,b,c")
val arguments = K2JVMCompilerArguments()
+1 -1
View File
@@ -74,7 +74,7 @@ compileKotlin {
freeCompilerArgs = ["-version",
"-Xallow-kotlin-package",
"-module-name", "kotlin-reflection",
"-Xdump-declarations-to", "${buildDir}/reflect-declarations.json"]
"-Xdump-declarations-to=${buildDir}/reflect-declarations.json"]
}
}
+1 -1
View File
@@ -43,7 +43,7 @@ compileKotlin {
kotlinOptions {
freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xdump-declarations-to", "${buildDir}/runtime-declarations.json",
"-Xdump-declarations-to=${buildDir}/runtime-declarations.json",
"-cp", "${rootDir}/../dist/builtins",
"-module-name", project.name
]