Mac specific !
I have been happily testing Cocoa in a Lazarus IDE built from the trunk. I use a carbon based IDE and select (in Project Options) -
Target CPU Family = x86_64
LCLWidgetType:= cocoa
However, I have just realised, despite that setting, and talk in the Messages Window about targeting x86_64 that I am, in fact, still building a 32bit app.
admins-MBP:Defines dbannon$ file project1
project1: Mach-O executable i386
So, I tried a lazbuild (show with lots of lines removed) -
../../laz-svn/lazbuild --pcp=~/.laz-svn -B --cpu="x86_64" --ws=cocoa --os="darwin" project1.lpi
Info: (lazarus) Execute Title="Compile Project, CPU: x86_64, Target: project1"
Info: (lazarus) Working Directory="/Users/dbannon/Desktop/Projects/Proj_SVN/Defines/"
Info: (lazarus) Executable="/usr/local/bin/ppc386"
Info: (lazarus) Param[0]="-B"
Info: (lazarus) Param[1]="-Tdarwin"
Info: (lazarus) Param[2]="-Px86_64"
......
Several promising 64bit lines but we are using the 32bit compiler.
Same thing with a switch to request the 64bit compiler and all good. I get a 64bit app and it does have some 64bit defines set in there.
And, surprised that I am requesting 64bit but only using (default) 32bit compiler ? No auto selection of the 32bit compiler when targeting 64bit ?
I was definitely building 32bit Cocoa apps and, interestingly, I have no 32bit Cocoa units (and obviously, no 64 Carbon units) -
admins-MBP:Defines dbannon$ ls -l ../../laz-svn/units/i386-darwin/
total 0
drwxr-xr-x 880 dbannon staff 29920 9 May 10:38 carbon
drwxr-xr-x 115 dbannon staff 3910 8 May 21:27 nogui
admins-MBP:Defines dbannon$ ls -l ../../laz-svn/units/x86_64-darwin/
total 0
drwxr-xr-x 879 dbannon staff 29886 16 Sep 2017 cocoa
drwxr-xr-x 4 dbannon staff 136 23 Apr 20:46 nogui
Davo