[darwinbuild-dev] -arch ppc
William Siegrist
wsiegrist at apple.com
Thu Jul 31 21:35:46 PDT 2008
On Jul 31, 2008, at 6:50 PM, Charles Darwin wrote:
> How do I build for ppc only?
>
The overall idea is to set the RC_ARCHS environment variable. But you
cant just export it, because its specified in the build plists. So
here's 2 ways to do it:
1. The maintainable/proper way.... Make a new plist that has an
environment key and a RC_ARCHS value. See 9A581.plist for an example
of the environment variables. You only need to specify what you need
to override, so you dont need keys for projects, macosx, darwin,
whatever. You should just need the build, inherits, and environment
keys. Use "darwinxref loadIndex path/to/new.plist" to load it. Use
"darwinbuild -build=<build> <project>" to build. You can see the value
of RC_ARCHS scroll by during the build process.
2. The quick/dirty way.... The data is stored in sqlite. You can do
"sqlite3 .build/xref.db", then use SQL to change the value of RC_ARCHS
in the properties table. Make you you get the top level setting for
the build you're targeting. Its probably labeled with the first x.0
release, so 8A428 for tiger or 9A581 for Leopard.
Projects can individually override the build-wide setting, so watch
for those. You can add a projects key to your plist and override the
per-project settings if needed. Let me know if you need more details
than this. I of course recommend doing #1 above.
-Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/darwinbuild-dev/attachments/20080731/bff5f6a2/attachment.bin
More information about the darwinbuild-dev
mailing list