summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-04-04 08:59:26 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-04-04 08:59:26 +0200
commite5cdd7f773d0d32f09676fb81f053ad76a76ec1d (patch)
treeb026b368512af4bc6ea49b2b0316a4e7ef37e858
parentc6327e229a187352ec52c29a7d1c8fb3e089eed2 (diff)
downloadNim-e5cdd7f773d0d32f09676fb81f053ad76a76ec1d.tar.gz
add alias for --debugger:native (#10957)
-rw-r--r--compiler/commands.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index e029ed9f5..0c574a079 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -481,6 +481,11 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
       undefSymbol(conf.symbols, "endb")
     else:
       localError(conf, info, "expected endb|gdb but found " & arg)
+  of "g": # alias for --debugger:native
+    incl(conf.globalOptions, optCDebug)
+    conf.options = conf.options + {optLineDir} - {optEndb}
+    #defineSymbol(conf.symbols, "nimTypeNames") # type names are used in gdb pretty printing
+    undefSymbol(conf.symbols, "endb")
   of "profiler":
     processOnOffSwitch(conf, {optProfiler}, arg, pass, info)
     if optProfiler in conf.options: defineSymbol(conf.symbols, "profiler")