64 bit builds on Mac OS X

76 views
Skip to first unread message

Konstantin Käfer

unread,
Dec 19, 2011, 4:56:33 AM12/19/11
to gyp-developer
Hi,

How do I build a 64 bit binary on Mac OS X with the Make build system?
It looks like gyp forces `-arch 386` into all Makefiles, regardless of
what `target_arch` I set in the gyp file.

Konstantin

Nathan Rajlich

unread,
Dec 23, 2011, 8:15:56 PM12/23/11
to gyp-developer
I am also curious about this. Thanks!

Konstantin Käfer

unread,
Jan 6, 2012, 6:26:04 PM1/6/12
to gyp-developer
So the (temporary) solution seems to be do uncomment cflags.append('-
arch i386') and ldflags.append('-arch i386') in the generator/make.py
file.

Konstantin

On Dec 24 2011, 2:15 am, Nathan Rajlich <nat...@tootallnate.net>
wrote:
> I am also curious about this. Thanks!
>

Evan Martin

unread,
Jan 7, 2012, 4:27:43 PM1/7/12
to Konstantin Käfer, gyp-developer
In the Linux world gyp punts the 32-bit/64-bit issue off to the gyp files.
http://codesearch.google.com/codesearch#search/&exact_package=chromium&q=target_arch%20file:%5C.gyp&type=cs

If Xcode/MSVS have some native conception of the target arch, it
probably falls on gyp to make a cross-platform hook for specifying
this kind of thing.

Reply all
Reply to author
Forward
0 new messages