Introduce -Xuse-ir flag for cli compiler

This commit is contained in:
Georgy Bronnikov
2018-07-09 15:01:11 +03:00
committed by Alexander Udalov
parent be8740e0ee
commit 8ce658ab54
3 changed files with 5 additions and 0 deletions
@@ -342,6 +342,7 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
}
private fun putAdvancedOptions(configuration: CompilerConfiguration, arguments: K2JVMCompilerArguments) {
configuration.put(JVMConfigurationKeys.IR, arguments.useIR)
configuration.put(JVMConfigurationKeys.DISABLE_CALL_ASSERTIONS, arguments.noCallAssertions)
configuration.put(JVMConfigurationKeys.DISABLE_RECEIVER_ASSERTIONS, arguments.noReceiverAssertions)
configuration.put(JVMConfigurationKeys.DISABLE_PARAM_ASSERTIONS, arguments.noParamAssertions)