We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54b5f3 commit cfefd1dCopy full SHA for cfefd1d
compiler/commands.nim
@@ -884,11 +884,19 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
884
of "import":
885
expectArg(conf, switch, arg, pass, info)
886
if pass in {passCmd2, passPP}:
887
- conf.implicitImports.add findModule(conf, arg, toFullPath(conf, info)).string
+ let m = findModule(conf, arg, toFullPath(conf, info)).string
888
+ if m.len == 0:
889
+ localError(conf, info, "Cannot resolve filename: " & arg)
890
+ else:
891
+ conf.implicitImports.add m
892
of "include":
893
894
- conf.implicitIncludes.add findModule(conf, arg, toFullPath(conf, info)).string
895
896
897
898
899
+ conf.implicitIncludes.add m
900
of "listcmd":
901
processOnOffSwitchG(conf, {optListCmd}, arg, pass, info)
902
of "asm":
0 commit comments