backend: Generate assert call depending on the compiler key

This commit is contained in:
Ilya Matveev
2017-03-10 16:30:57 +03:00
committed by ilmat192
parent 30be84cd55
commit 97b5bb527d
6 changed files with 30 additions and 6 deletions
@@ -105,6 +105,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
arguments.verbosePhases.toNonNullList())
put(LIST_PHASES, arguments.listPhases)
put(TIME_PHASES, arguments.timePhases)
put(ENABLE_ASSERTIONS, arguments.enableAssertions)
}}
}
@@ -83,5 +83,8 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
@Argument(value = "time", description = "Report execution time for compiler phases")
public boolean timePhases;
@Argument(value = "enable_assertions", alias = "ea", description = "Enable runtime assertions in generated code")
public boolean enableAssertions;
}