• Russ Cox's avatar
    cmd/go: require -buildmode=c-shared to take one main package · 53e4b8fc
    Russ Cox authored
    The current behavior is to filter out the non-main packages silently,
    which is confusing if there are only non-main packages.
    Instead, report an error unless it's used with a single main package.
    
    To be clear, I don't really know what I'm doing.
    It might be that multiple main packages are allowed, or even
    that we do want the filtering, but all.bash passes with this change,
    so I am taking that as a sign that we don't need that extra flexibility.
    
    Fixes #15082.
    
    Change-Id: I984d0f444a01c0ee0c3cd6646a75527ea99a9ebe
    Reviewed-on: https://go-review.googlesource.com/46421
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    53e4b8fc
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...