• Russ Cox's avatar
    gc: include all dependencies in export metadata · e6f3aa6c
    Russ Cox authored
    This change records more metadata about what
    influenced the creation of the object file.
    Specifically, if a package imports, say, "fmt" but does not
    need to describe any fmt types in its own export data,
    that package's object file did not mention the dependency
    on "fmt" before.  Now it does.
    
    Listing the import is purely informational.
    It has no effect on which files are opened or consulted
    when importing a package.
    
    Import lines are marked indirect when they are needed
    to explain the API but were not imported directly.
    For example http imports crypto/tls and exports
    a struct with a field of type tls.ConnectionState,
    which contains an x509.Certificate.  Since http does
    not import x509 but needs to explain the x509.Certificate
    type in its export data, the import of x509 is marked
    as indirect.  These import lines were always present;
    marking them with the indirect comment makes clear
    which were imported directly and which are incidental.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/4295048
    e6f3aa6c
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...