Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: b2c8061b44b0
Choose a base ref
...
head repository: NixOS/nix
compare: dc719b9745f1
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 10, 2020

  1. Prelink static libraries into an object file

    This combines the *.o into a big .o producing one translation unit.
    This preserve our unused static initializers, as specified in the C++
    standard:
    
      If no variable or function is odr-used from a given translation
      unit, the non-local variables defined in that translation unit may
      never be initialized (this models the behavior of an on-demand
      dynamic library).
    
    Note that this is very similar to how the --whole-archive flag works.
    One advantage of this is that users of the final .a library don’t have
    to worry about specifying --whole-archive, or that we have unused
    static initializers at all!
    matthewbauer committed Jun 10, 2020
    Copy the full SHA
    7eca8a1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3677 from matthewbauer/static-nix-one-translation…

    …-unit
    
    Prelink static libraries into an object file
    edolstra committed Jun 10, 2020
    Copy the full SHA
    dc719b9 View commit details
    Browse the repository at this point in the history