On Thu, Mar 10, 2016 at 4:47 PM, René J.V. <[email protected]> wrote: > On Thursday March 10 2016 14:24:00 Ryan Schmidt wrote: > >> > CMake does something similar for all 4 built-in presets, so the only way I >> > know to control the exact compiler flags is to set CMAKE_BUILD_TYPE to a >> > custom value. Debian/Ubuntu do that in their packaging scripts >> > (-DCMAKE_BUILD_TYPE=Debian); I've proposed a modified CMake PortGroup that >> > uses -DCMAKE_BUILD_TYPE=MacPorts (and parses configure.cppflags because >> > CMake doesn't have a dedicated variable for preprocessor options). >> >> If so, that would be yet another bug, or yet another broken-by-design >> feature, of cmake. > > I tend to agree, but it depends on how you look at the concept of presets ... >
From http://opensource.apple.com/source/clang/clang-700.0.72/Makefile, it appears that Apple builds llvm/clang at -O2 rather than -Os. >> > Here's something much more interesting though: I just discovered that llvm >> > and clang 3.8 are both about TEN times smaller than they were in 3.6 and >> > 3.7: The difference is that the builds of llvm prior to 3.8 release was done with the configure based build system. The configure based build was deprecated out in favor of the cmake build starting with 3.8. $ du -k /opt/local/libexec/llvm-3.7/lib ... 1675924 /opt/local/libexec/llvm-3.7/lib $ du -k /opt/local/libexec/llvm-3.8/lib ... 164444 /opt/local/libexec/llvm-3.8/lib This bloat in the prior releases is due to the default usage of --enable-debug-symbols in the configure build whereas the cmake build defaults to the -debug variant. > ... >> > >> > What's going on here?? > >> >> My llvm-3.4 is 436MB, llvm-3.7 765MB. > > Are those the tarball sizes, or the unpacked sizes? > >> >> I don't know why mine are the size they are and yours are the size they are. > > Differences due to OS version and thus the used compiler? > >> You could untar your llvm-3.7 and llvm-3.7 and compare them to see where the >> size difference lies. > > You did notice that I repackaged the images as xz'ed tarballs, right? That > does make a considerable difference for llvm and clang. > > According to xz, the llvm-3.7 tarball is 1628.6Mb uncompressed, llvm-3.6 > 1326Mb, llvm-3.8 107.3Mb . The llvm-3.8 destroot I just built (without shared > libllvm and without RTTI support, using MacPorts clang 3.7 and -O3 > -march=native) is 387Mb. > > R. _______________________________________________ macports-dev mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-dev
