Bug 40190 - Need a convenient way to build Universal i386/x86_64 Debug on Mac
Summary: Need a convenient way to build Universal i386/x86_64 Debug on Mac
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 16:31 PDT by Jeff Johnson
Modified: 2010-06-18 18:54 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2010-06-04 16:31:45 PDT
On Mac OS X 10.6 Snow Leopard, some applications can run in either 64-bit (x86_64) or 32-bit (i386) modes, but other applications haven't yet been updated for 64-bit and can only run in 32-bit mode. I need to be able to debug WebKit in either 64-bit or 32-bit mode. However, there doesn't seem to be any convenient way to make a Debug build of WebKit that's 'Universal', i.e., i386 and x86_64. The set-webkit-configuration script has --32-bit and --64-bit arguments that allow you to build either i386 or x86_64 versions of WebKit, but I can't find any way to build them both (in the Debug configuration).
Comment 1 Mark Rowe (bdash) 2010-06-18 15:09:19 PDT
build-webkit --debug ONLY_ACTIVE_ARCH=NO ARCHS=“i386 x86_64”

Alternatively, just switch between `build-webkit --32-bit` and `build-webkit --64-bit`.  The frameworks will each relink but that will take less than a minute if the build is otherwise up to date.
Comment 2 Jeff Johnson 2010-06-18 18:54:27 PDT
Ah, ONLY_ACTIVE_ARCH is what I was missing. Thanks! That seems to work fine. Any chance of adding a built-webkit option for that?

The alternative suggestion didn't seem to work right, though. When I tried to go back and forth from 64-bit to 32-bit to 64-bit (without updating or cleaning), the second 64-bit build recompiled everything instead of just relinking. Is that a bug? Admittedly, I haven't done much testing of this, because one build takes up to an hour.