[Solved] How to set up project with multiple cross compilers? lazarus / 11-Options ---------------------------------------------------------------------- Pascal · 2018-10-17 11:25 How can i set up a project where each build mode uses a different compiler (cross compiling)? ---------------------------------------------------------------------- heejit · 2018-10-17 13:24 It is very easy with fpcupdeluxe https://github.com/newpascal/fpcupdeluxe/releases I am using it to crosscomplie from Linux -> Win64 ---------------------------------------------------------------------- Pascal · 2018-10-17 13:43 Sorry, that's not what i wanted to know. How do i set up one Lazarus project with two build modes, where each mode uses a different compiler. The compiler is set for all projects in the lazarus options atm. ---------------------------------------------------------------------- lucamar · 2018-10-17 14:17 I have never tried it but, can't you change the compiler in the project options? (Project Options -> Compiler Commands -> Compiler) ---------------------------------------------------------------------- zeljko · 2018-10-17 14:36 Quote from: Pascal on October 17, 2018, 01:25:04 pmHow can i set up a project where each build mode uses a different compiler (cross compiling)? Go to "Project options" -> Compiler options -> Build modes (it's on top of form), click speed button and add new build mode, in such mode you can choose different CPU (Config and Target), different name of output binary (Paths- > Target file name, also you can choose different widgetset via "Additions and overrides" ---------------------------------------------------------------------- Pascal · 2018-10-17 18:31 Quote from: zeljko on October 17, 2018, 04:36:58 pmQuote from: Pascal on October 17, 2018, 01:25:04 pmHow can i set up a project where each build mode uses a different compiler (cross compiling)? Go to "Project options" -> Compiler options -> Build modes (it's on top of form), click speed button and add new build mode, in such mode you can choose different CPU (Config and Target), different name of output binary (Paths- > Target file name, also you can choose different widgetset via "Additions and overrides" I know this! but all of this is done with the compiler set in Lazarus options. ---------------------------------------------------------------------- Pascal · 2018-10-17 18:32 Quote from: lucamar on October 17, 2018, 04:17:01 pmI have never tried it but, can't you change the compiler in the project options? (Project Options -> Compiler Commands -> Compiler) Right, thanks, that does the job! Stupid me ---------------------------------------------------------------------- Pascal · 2018-10-17 18:54 Quote from: Pascal on October 17, 2018, 08:31:09 pmQuote from: zeljko on October 17, 2018, 04:36:58 pmQuote from: Pascal on October 17, 2018, 01:25:04 pmHow can i set up a project where each build mode uses a different compiler (cross compiling)? Go to "Project options" -> Compiler options -> Build modes (it's on top of form), click speed button and add new build mode, in such mode you can choose different CPU (Config and Target), different name of output binary (Paths- > Target file name, also you can choose different widgetset via "Additions and overrides" I know this! but all of this is done with the compiler set in Lazarus options. You get this if the target does not match: ---------------------------------------------------------------------- ASBzone · 2018-11-11 05:16 Quote from: Pascal on October 17, 2018, 08:32:08 pmQuote from: lucamar on October 17, 2018, 04:17:01 pmI have never tried it but, can't you change the compiler in the project options? (Project Options -> Compiler Commands -> Compiler) Right, thanks, that does the job! Stupid me It took me a while to find that there, but I've been loving it since I found it. Now I can use:  "Run --> Compile Many Modes" to quickly generate x32 and x64 binaries