| 219 | === Using build_arch === #usingbuildarch |
| 220 | |
| 221 | MacPorts 1.8 introduced a new option to macports.conf: '''build_arch'''. This allows you to control the architecture targeted by builds. For example, you can use this to build 64bit on 10.5 (where 32bit is the default) or 32bit on 10.6 (where 64bit is usually the default). |
| 222 | |
| 223 | There are two issues to note before you try and use build_arch: |
| 224 | - many ports ignore the {{{-arch}}} flag to select the architecture, and will most likely fail to build at all |
| 225 | - you must set build_arch prior to building any ports (must be done on a new, clean install), otherwise you will have major issues due to some ports being of one architecture, and some the other. |
| 226 | |