diff options
author | rku <rokups@zoho.com> | 2015-07-31 16:00:13 +0300 |
---|---|---|
committer | rku <rokups@zoho.com> | 2015-07-31 16:00:13 +0300 |
commit | df0e1a515b40d09527f0ad7f5aafa226d3ff37a5 (patch) | |
tree | a826f0cb75f33c00b99f0e806d94a875ef332b8f /compiler/commands.nim | |
parent | 626226efa40441d03b2f9121e2a73faaa44b2517 (diff) | |
download | Nim-df0e1a515b40d09527f0ad7f5aafa226d3ff37a5.tar.gz |
Added fasm (external assembler) support.
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 7a908b270..29d08f327 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -612,6 +612,10 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) = of "experimental": expectNoArg(switch, arg, pass, info) gExperimentalMode = true + of "assembler": + cAssembler = nameToCC(arg) + if cAssembler notin cValidAssemblers: + localError(info, errGenerated, "'$1' is not a valid assembler." % [arg]) else: if strutils.find(switch, '.') >= 0: options.setConfigVar(switch, arg) else: invalidCmdLineOption(pass, switch, info) |