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).
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.
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.