DRIVER: added '-g' key to enable emitting debug information
This commit is contained in:
committed by
vvlevchenko
parent
a4eceb3e3a
commit
7e9a01b6ba
@@ -121,6 +121,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
||||
put(TARGET, arguments.target)
|
||||
put(LIST_TARGETS, arguments.listTargets)
|
||||
put(OPTIMIZATION, arguments.optimization)
|
||||
put(DEBUG, arguments.debug)
|
||||
|
||||
put(PRINT_IR, arguments.printIr)
|
||||
put(PRINT_IR_WITH_DESCRIPTORS, arguments.printIrWithDescriptors)
|
||||
|
||||
@@ -53,6 +53,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
||||
@Argument(value = "-target", valueDescription = "<target>", description = "Set hardware target")
|
||||
public String target;
|
||||
|
||||
@Argument(value = "-g", description = "Enable emitting debug information")
|
||||
public boolean debug;
|
||||
|
||||
@Argument(value = "-enable_assertions", shortName = "-ea", description = "Enable runtime assertions in generated code")
|
||||
public boolean enableAssertions;
|
||||
|
||||
|
||||
+2
@@ -37,6 +37,8 @@ class KonanConfigKeys {
|
||||
= CompilerConfigurationKey.create("current abi version")
|
||||
val OPTIMIZATION: CompilerConfigurationKey<Boolean>
|
||||
= CompilerConfigurationKey.create("optimized compilation")
|
||||
val DEBUG: CompilerConfigurationKey<Boolean>
|
||||
= CompilerConfigurationKey.create("compilation with debug information")
|
||||
val NOSTDLIB: CompilerConfigurationKey<Boolean>
|
||||
= CompilerConfigurationKey.create("don't link with stdlib")
|
||||
val NOLINK: CompilerConfigurationKey<Boolean>
|
||||
|
||||
Reference in New Issue
Block a user