November 13, 2009
On 11/13/09 11:20, Walter Bright wrote:
> Denis Koroskin wrote:
>> On Fri, 13 Nov 2009 07:07:21 +0300, Walter Bright
>> <newshound1@digitalmars.com> wrote:
>>
>>> An update just to support Mac OSX 10.6. That also means the end of
>>> the line for official support of 10.5 and earlier.
>>>
>>> http://ftp.digitalmars.com/dmd.1.051.zip
>>
>> Isn't there any way to support both platforms?
>
> No way to test on 10.5 without buying yet another machine. I don't know
> if it works or not on 10.5. The "bus error" for 10.4 is probably back
> because installing the 10.6 dev system from Apple seems to have deleted
> the 10.4 stuff.
>
> If someone wants to test it on 10.5, please do and report back with the
> results. If it does not, and there's some simple change to make it do
> so, I'll be happy to fold it in.
>
>
>> Looking at the changes, I think it's even possible to add a new DMD
>> flag (e.g. "-osx=10.5", defaults to 10.6) and keep an older behavior
>> on demand.
>
> The compiler changes should be backwards compatible with 10.5. (The
> reason it didn't work with 10.6 is Apple changed the linker behavior; I
> found a workaround which appears successful.)
>
>
>> Alternatively, you could wrap the changes you made into #ifdef
>> OSX_10_6 ... #else ... #endif so that users could compile DMD with
>> older Macs support from source. DMD would then be distributed with 2
>> binaries, e.g. dmd_10.6 and dmd_10.5 and dmd would be an alias/symlink
>> to either of them (depending on the target platform).
>
> On Windows I can build one binary that works from NT to Win7, a 20 year
> span of operating systems.

I filed an issue with a path attached that as far as I can see fixes the dropped Mac OS X 10.5 support. http://d.puremagic.com/issues/show_bug.cgi?id=3502
November 14, 2009
On 2009-11-13 14:55:12 +0100, Michel Fortin <michel.fortin@michelf.com> said:
> Really? Can't you just partition your hard disk in two for 10.5? I'm not saying you should take the burden of testing with both, but saying you can't install 10.5 alongside 10.6 seems dubious to me:
> 
> 1. Use Disk Utility to resize your current partition and create a new one.
> 2. Boot using your 10.5 installer DVD and install on the new partition.
> 3. Press option at startup to see a boot menu; open the Startup preference pane to set the default boot partition (or use "bless" on the command line).

Why go through the hassle of dual booting? Kernel ABI compatibility is usually quite good in OS X, so it should be not problem to unpack the Darwin userland somewhere and chroot into it for 10.5 testing...

Take care,
Daniel

1 2 3
Next ›   Last »