Changes between Version 39 and Version 40 of LibcxxOnOlderSystems
- Timestamp:
- Aug 5, 2016, 4:13:52 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v39 v40 52 52 ==== Bootstrapping 3: Build a current version of clang against libc++ ==== 53 53 54 The instructions below are for the latest stable build of llvm at the time of this writing (3.8). You should be able to easily replace 3.8 with 3.6, 3.7, 3.9, or later versions, but 3.4 is needed to bootstrap the process.54 The instructions below are for llvm-3.7. Note that there are some known issues with clang-3.8 on Snow Leopard, and clang-3.9 fails to compile on Snow Leopard, so you should stick with 3.7 for now. If you already installed 3.8, you'll have 3.7 because it's required as part of the bootstrapping process, so you should just edit default_compilers to remove macports-clang-3.8 until its issues have been resolved. 55 55 56 56 1. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain: … … 72 72 4. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency): 73 73 {{{ 74 sudo port -v install clang-3. 874 sudo port -v install clang-3.7 75 75 }}} 76 76 5. Add the variant corresponding to the new version of llvm to `/opt/local/etc/macports/variants.conf`. This ensures that cctools and ld64 will be reinstalled using the appropriate version of llvm: 77 77 {{{ 78 +llvm3 878 +llvm37 79 79 }}} 80 6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3. 8` as preferred compiler:80 6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.7` as preferred compiler: 81 81 {{{ 82 default_compilers macports-clang-3. 8 macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.082 default_compilers macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0 83 83 }}} 84 84 7. Rebuild cctools and ld64 to use the newer version of llvm: … … 94 94 -ld64_236 95 95 }}} 96 9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker (note macports-clang-3.8 fails to compile it on Snow Leopard currently, so use macports-clang-3.7):96 9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker: 97 97 {{{ 98 sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236 configure.compiler=macports-clang-3.798 sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236 99 99 }}} 100 100 10. Uninstall the bootstrap toolchain: