On Mon, 27 May 2019 17:49:31 +0200, Bo Berglund via lazarus <lazarus@lists.lazarus-ide.org> wrote:
>Since I have both installed on my laptop it would be nice to be able >to manage both 32 and 64 bit versions from the same environment, if >possible. I found the following method: Build modes can be used to handle this. I have enabled build modes Win32 and Win64 and set these to different executable output names. I also modified the target OS and CPU family correspondingly. Still it is a manual operation to select the correct build mode depending on which IDE I have opened. Is there some way to automatically select build mode depending on the version of the IDE (32 or 64 bit on Windows)? In the 64 bit IDE I can now build both 32 and 64 bit executables just by switching the build mode. But if I use Lazarus 32 bit then it it works fine to build the 32 bit version but complains when I try to build the 64 bit version: "Compiler: C:\Programs\lazarus_2.0\fpc\3.0.4\bin\i386-...\fpc.exe does not support target x86_64-win64" It seems like the 64 bit fpc compiler can handle both targets but the 32 bit one not.... Is this solvable? OTH, if the 64 bit Lazarus can handle both 32 and 64 bit Windows, why bother with the 32 bit Lazarus? -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus