Changes between Version 67 and Version 68 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Aug 24, 2019, 5:28:13 AM (5 years ago)
Author:
kencu (Ken)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v67 v68  
    5151==== Bootstrapping 3: Build a current version of clang against libc++ ====
    5252
    53 The instructions below will install clang-3.7.  clang-3.8 and clang-3.9 recently started to support Leopard and Snow Leopard.
     53The instructions below will install clang-3.7.
    5454
    55551. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain:
     
    6868sudo port -v -f uninstall inactive
    6969}}}
    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.
     704. Install clang-3.7 against libc++.
    7171{{{
    7272sudo port -v install clang-3.7
     
    7575{{{
    7676-llvm34
    77 +llvm39 # You may need to update this to +llvm40 and higher in the future
     77+llvm50
    7878}}}
    79796. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.7` as preferred compiler:
     
    8181default_compilers  macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
    8282}}}
    83 7. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-3.9):
     837. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-5.0):
    8484{{{
    85 sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm39
    86 sudo port -v -n upgrade --force --enforce-variants ld64 -llvm34 +llvm39
     85sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm50
     86sudo port -v -n upgrade --force --enforce-variants ld64 -llvm34 +llvm50
    8787}}}
    88888. **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:
     
    9797sudo port -v deactivate ld64-127
    9898}}}
    99 10. Install clang-3.9
     9910. Install clang-5.0
    100100{{{
    101 sudo port -v install clang-3.9
     101sudo port -v install clang-5.0
    102102}}}
    103 11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler, and re-enable revupgrade_autorun:
     10311. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-5.0` as preferred compiler, and re-enable revupgrade_autorun:
    104104{{{
    105 default_compilers macports-clang-3.9 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
     105default_compilers macports-clang-5.0 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
    106106## delete this line you added previously ==> revupgrade_autorun         no
    107107}}}
     
    111111sudo port -v uninstall inactive
    112112}}}
    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.
     11313. 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.
    114114
    115115== Leopard (ppc) ==