OS - Windows 10, 64 bit
I have FPC 3.2.2 stable installed with fpc installer, first 32-bit compiler, then 64-bit cross-compiler; they are installed in default path, as suggested by the installer (C:\FPC\3.2.2\bin\i386-win32).
I have Lazarus sources, current fixes branch, downloaded from git repository.
Now, I build Lazarus IDE 64-bit from command line:
make clean all OS_TARGET=win64 CPU_TARGET=x86_64
That passes without problems and I have 64-bit IDE.
But then I want to rebuild the IDE from the IDE build options dialog. It does not work.
If I just rebuild with "Normal IDE", I get 32-bit IDE instead of 64-bit.
If I set the combo boxes "Target OS" and "Target CPU" to Win64 and x86_64 (see the attached image), I get compiler error:
Build IDE: Exit code 2, Errors: 1
Error: Illegal parameter: -Twin64
Okay, I can work normally with 32-bit IDE, projects compile quite well to both 32-bit and 64-bit, when I create BuildModes and set appropriate options (see attached image), however, I would like the IDE itself also built as 64-bit application.
So, please, what am I doing wrong?