Changes between Version 65 and Version 66 of LibcxxOnOlderSystems
- Timestamp:
- Nov 23, 2018, 1:26:40 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v65 v66 13 13 14 14 If you use MacPorts C++-using ports as dependencies for C++-using software that you compile outside of MacPorts, you must compile that software using libc++ as well. 15 16 [Note: since the original writing of this article, MacPorts has developed the ability to build software against newer versions of libgcc that support c++11 (and newer) as well. This is currently undertaken by default in MacPorts. You may still wish to use libc++ as your default runtime to achieve maximal compatibility with currently-developed software, however. If so, continue with these instructions.] 15 17 16 18 == Lion and Mountain Lion == … … 62 64 buildfromsource always 63 65 default_compilers macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 66 revupgrade_autorun no 64 67 }}} 65 68 3. Uninstall all the remaining inactive ports: … … 96 99 sudo port -v deactivate ld64-127 97 100 }}} 98 10. **Experimental:**Install clang-3.9101 10. Install clang-3.9 99 102 {{{ 100 103 sudo port -v install clang-3.9 101 104 }}} 102 11. **Experimental:** Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler:105 11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler, and re-enable revupgrade_autorun: 103 106 {{{ 104 default_compilers macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 107 default_compilers macports-clang-3.9 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0 108 ## delete this line you added previously ==> revupgrade_autorun no 105 109 }}} 106 110 12. Uninstall the bootstrap toolchain: … … 109 113 sudo port -v uninstall inactive 110 114 }}} 115 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. 111 116 112 117 == Leopard (ppc) ==