From e5cdd7f773d0d32f09676fb81f053ad76a76ec1d Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Thu, 4 Apr 2019 08:59:26 +0200 Subject: add alias for --debugger:native (#10957) --- compiler/commands.nim | 5 +++++ 1 file changed, 5 insertions(+) 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") -- cgit 1.4.1-2-gfad0