On Mon, 13 Dec 2021 22:44:16 +0100, Bart via lazarus <lazarus@lists.lazarus-ide.org> wrote:
>On Mon, Dec 13, 2021 at 10:29 PM Bo Berglund via lazarus ><lazarus@lists.lazarus-ide.org> wrote: > > >> This sounds like what I need. >> I looked at the project options and found that there is one box to enter the >> Execute after command. And checkboxes to set when it is used. >> >> But I would need *two* commands: >> - copy to the svn location >> - strip -s on that copy >> > >In compiler options you can set various debugging related options as well. >One is to strip symbols. >- uncheck: "generate infor for the debugger" >- check: Strip symbols from executable >You apply those debugging options to your "Release" build mode. >You keep all relevant debugging options checked for your "Debug" build-mode. > >Now you develop in "Debug" build-mode. >Once you're ready to release: swicth build-mode to "Release" and compile. > >(You might want a "Release and copy to svn" build mode with the >"Execute after command", sou you can also test your release mode build >(if you use e.g. different optimizations, some yet unnoticed bug may >crop up.) > Thanks, I went there and found where I could add the release mode. I did not even need to enter a copy command because I could set the "Target filename" for Release to include the subdirectory bin. So now my Default mode saves the executable to the project dir and the Release saves to subdir bin. This is exactly what I needed, thanks for explaining it! :) -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus