backend: Generate assert call depending on the compiler key
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user