We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f29e8 commit 0682cd6Copy full SHA for 0682cd6
src/cmd/link/internal/ld/lib.go
@@ -1774,6 +1774,13 @@ func (ctxt *Link) hostlink() {
1774
if len(out) > 0 {
1775
// always print external output even if the command is successful, so that we don't
1776
// swallow linker warnings (see https://golang.org/issue/17935).
1777
+ if ctxt.IsDarwin() && ctxt.IsAMD64() {
1778
+ const noPieWarning = "ld: warning: -no_pie is deprecated when targeting new OS versions\n"
1779
+ if i := bytes.Index(out, []byte(noPieWarning)); i >= 0 {
1780
+ // swallow -no_pie deprecation warning, issue 54482
1781
+ out = append(out[:i], out[i+len(noPieWarning):]...)
1782
+ }
1783
1784
ctxt.Logf("%s", out)
1785
}
1786
0 commit comments