Made -Xfake-override-validator off by default

Deprected -Xdisable-fake-override-validator

(cherry picked from commit 0abe4e46c497645b07e9e55088135813bd1a7437)
This commit is contained in:
Alexander Gorshenev
2020-11-14 03:31:07 +03:00
committed by Stanislav Erokhin
parent 10a1ea9091
commit 07db1de4da
4 changed files with 8 additions and 5 deletions
@@ -248,7 +248,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
parseShortModuleName(arguments, configuration, outputKind)?.let {
put(SHORT_MODULE_NAME, it)
}
put(DISABLE_FAKE_OVERRIDE_VALIDATOR, arguments.disableFakeOverrideValidator)
put(FAKE_OVERRIDE_VALIDATOR, arguments.fakeOverrideValidator)
putIfNotNull(PRE_LINK_CACHES, parsePreLinkCachesValue(configuration, arguments.preLinkCaches))
putIfNotNull(OVERRIDE_KONAN_PROPERTIES, parseOverrideKonanProperties(arguments, configuration))
put(DESTROY_RUNTIME_MODE, when (arguments.destroyRuntimeMode) {
@@ -142,9 +142,12 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
)
var exportedLibraries: Array<String>? = null
@Argument(value="-Xdisable-fake-override-validator", description = "Disable IR fake override validator")
@Argument(value="-Xdisable-fake-override-validator", description = "This option is deprecated")
var disableFakeOverrideValidator: Boolean = false
@Argument(value="-Xfake-override-validator", description = "Enable IR fake override validator")
var fakeOverrideValidator: Boolean = false
@Argument(
value = "-Xframework-import-header",
valueDescription = "<header>",