Changes between Version 49 and Version 50 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Nov 3, 2016, 6:53:24 AM (8 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Changes for clang-3.8 and Leopard

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v49 v50  
    7070sudo port -v -f uninstall inactive
    7171}}}
    72 4. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency):
     724. Install clang-3.7 against libc++.  Note that clang-3.7 is installed here because clang-3.8 has extra dependencies.  You might be able to use clang-3.8 here, but I haven't tried that yet.  Please report back.
    7373{{{
    7474sudo port -v install clang-3.7
     
    8383default_compilers  macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
    8484}}}
    85 7. Rebuild cctools and ld64 to use the newer version of llvm:
     857. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-3.8):
    8686{{{
    87 sudo port -v -n upgrade --enforce-variants cctools -llvm33 -llvm34
    88 sudo port -v upgrade --enforce-variants ld64 -llvm33 -llvm34
     87sudo port -v -n upgrade --force --enforce-variants cctools -llvm33 -llvm34
     88sudo port -v -n upgrade --force --enforce-variants ld64 -llvm33 -llvm34
    8989}}}
    90 8. 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:
     908. **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:
    9191{{{
    9292-ld64_97
     
    9595-ld64_236
    9696}}}
    97 9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
     979. **Snow Leopard Only:** Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
    9898{{{
    9999sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236
    100100}}}
    101 10. Uninstall the bootstrap toolchain:
     10110. Install clang-3.8
     102{{{
     103sudo port -v install clang-3.7
     104}}}
     10511. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.8` as preferred compiler:
     106{{{
     107default_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.0
     108}}}
     10912. Uninstall the bootstrap toolchain:
    102110{{{
    103111sudo port -v deactivate llvm-3.4 clang-3.4