[Lazarus] trunk IDE now uses the project's compiler for code navigation

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Mar 3 11:31:31 CET 2014


Hi,

Short:
Code navigation now works correctly when using another compiler in the
project different from the default compiler under Tools -> Options.

Please test.

Long:
Code navigation needs the macros and search paths of the current
compiler. The settings are fetched by running the compiler with
parameter -va.

Formerly the IDE only asked the default compiler from Tools ->
Options with the project's target OS and CPU for settings.

The trunk 1.3 IDE now asks the compiler of the project's
compiler options. It recognizes a compiler if its name is fpc.exe or
ppc*.exe (*nix: fpc or ppc*). Otherwise it uses the default compiler.

That means code navigation now works correctly when switching the
compiler via build modes or when loading a project using another
compiler.

You can pass the select options -Xp and -V via the Project -> Compiler
Options -> Other -> Custom options.


Mattias




More information about the Lazarus mailing list