Changes between Version 67 and Version 68 of LibcxxOnOlderSystems
- Timestamp:
- Aug 24, 2019, 5:28:13 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v67 v68 51 51 ==== Bootstrapping 3: Build a current version of clang against libc++ ==== 52 52 53 The instructions below will install clang-3.7. clang-3.8 and clang-3.9 recently started to support Leopard and Snow Leopard.53 The instructions below will install clang-3.7. 54 54 55 55 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: … … 68 68 sudo port -v -f uninstall inactive 69 69 }}} 70 4. Install clang-3.7 against libc++. Note that clang-3.7 is installed here because clang-3.8+ have extra dependencies. You might be able to use clang-3.8+ here, but I haven't tried that yet. Please report back.70 4. Install clang-3.7 against libc++. 71 71 {{{ 72 72 sudo port -v install clang-3.7 … … 75 75 {{{ 76 76 -llvm34 77 +llvm 39 # You may need to update this to +llvm40 and higher in the future77 +llvm50 78 78 }}} 79 79 6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.7` as preferred compiler: … … 81 81 default_compilers macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 82 82 }}} 83 7. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm- 3.9):83 7. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-5.0): 84 84 {{{ 85 sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm 3986 sudo port -v -n upgrade --force --enforce-variants ld64 -llvm34 +llvm 3985 sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm50 86 sudo port -v -n upgrade --force --enforce-variants ld64 -llvm34 +llvm50 87 87 }}} 88 88 8. **Snow Leopard Only:** Disable the variants corresponding to the older versions of ld64 in `/opt/local/etc/macports/variants.conf`. This ensures that ld64 will be reinstalled using the appropriate variants in the future: … … 97 97 sudo port -v deactivate ld64-127 98 98 }}} 99 10. Install clang- 3.999 10. Install clang-5.0 100 100 {{{ 101 sudo port -v install clang- 3.9101 sudo port -v install clang-5.0 102 102 }}} 103 11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang- 3.9` as preferred compiler, and re-enable revupgrade_autorun:103 11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-5.0` as preferred compiler, and re-enable revupgrade_autorun: 104 104 {{{ 105 default_compilers macports-clang- 3.9macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0105 default_compilers macports-clang-5.0 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 106 106 ## delete this line you added previously ==> revupgrade_autorun no 107 107 }}} … … 111 111 sudo port -v uninstall inactive 112 112 }}} 113 13. Snow Leopard is able to install and use versions of clang and llvm up at least 7.0 at present. Leopard is presently limited to clang-3.9.113 13. Snow Leopard is able to install and use versions of clang and llvm up at least 8.0 at present. Leopard is presently limited to clang-7.0. 114 114 115 115 == Leopard (ppc) ==