[fpc-pascal] Code tools search paths

2020-05-10 Thread Ryan Joseph via fpc-pascal
I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi) was doing something because it helped FindDeclaration to search for units not in the same same directory as the main program. However now I've encountered problems with FindReferences (the example Mattias made for me) which seem

Re: [fpc-pascal] Code tools search paths

2020-05-10 Thread Mattias Gaertner via fpc-pascal
On Sun, 10 May 2020 16:34:11 +0700 Ryan Joseph via fpc-pascal wrote: > I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi) > was doing something because it helped FindDeclaration to search for > units not in the same same directory as the main program. However now > I've encounter

Re: [fpc-pascal] Code tools search paths

2020-05-10 Thread Ryan Joseph via fpc-pascal
> On May 10, 2020, at 4:47 PM, Mattias Gaertner via fpc-pascal > wrote: > > TDefineTemplates. > see for example > lazarus/components/codetools/examples/setincludepath.pas > Ok, I'll move to this. What are the FPC options for then? I thought I could do things like -Fu and -d with it. Are in

[fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-10 Thread Noel Duffy via fpc-pascal
I've been beavering away at a fix for https://bugs.freepascal.org/view.php?id=37013 and I've run into something unexpected. When I try to build rtl-extra with my proposed patch applied, I get compiler errors for things like the use of result variables and var/out variables. I'm so used to these