Compiling DMD's source code in Mac OSX

Jacob Carlborg doob at me.com
Thu Mar 29 23:44:48 PDT 2012


On 2012-03-30 03:53, Jonathan M Davis wrote:
> On Friday, March 30, 2012 09:15:11 Ary Manzana wrote:
>> Hi,
>>
>> Does anyone have a build script or something similar for compiling DMD
>> under Mac? I cloned the repo but all I can see is a win32.mak file. I
>> renamed it to Makefile and tried make but no luck.
>>
>> I don't have much experience with make or makefiles.
>
> Use posix.mak.
>
> make -f posix.mak
>
> should work (with MODEL=64 if you want the 64-bit build).
>
> - Jonathan M Davis

Note that it doesn't work out of the box with Xcode 4.3, it can't find 
the SDK.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list