www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Compiling DMD's source code in Mac OSX

reply Ary Manzana <ary esperanto.org.ar> writes:
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.

Thanks,
Ary
Mar 29 2012
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
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
Mar 29 2012
next sibling parent Jacob Carlborg <doob me.com> writes:
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
Mar 29 2012
prev sibling parent reply Ary Manzana <ary esperanto.org.ar> writes:
On 3/30/12 9:53 AM, 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
Thanks Jonathan! Is there any change to put this in the readme file, in another file (build.txt?) or in the wiki in github? (I see the wiki is disabled... T_T)
Mar 29 2012
parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Friday, March 30, 2012 14:53:33 Ary Manzana wrote:
 On 3/30/12 9:53 AM, 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
Thanks Jonathan! Is there any change to put this in the readme file, in another file (build.txt?) or in the wiki in github? (I see the wiki is disabled... T_T)
You can always create a pull request if you think that something needs to be changed. - Jonathan M Davis
Mar 30 2012