-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: permit additional cflags when compiling #60868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 4127df6) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504335 to see it. Tip: You can toggle comments from me using the |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Ian Lance Taylor: Patch Set 1: (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Holger Freyther: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Bryan Mills: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Cherry Mui: Patch Set 1: Code-Review+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Last-Rev: 4127df6 GitHub-Pull-Request: golang#60868
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Last-Rev: 4127df6 GitHub-Pull-Request: golang#60868
This PR (HEAD: aa29c90) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504335 to see it. Tip: You can toggle comments from me using the |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Last-Rev: 4127df6 GitHub-Pull-Request: golang#60868
This PR (HEAD: 434b350) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504335 to see it. Tip: You can toggle comments from me using the |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Pull-Request: golang#60868
This PR (HEAD: a1c33be) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504335 to see it. Tip: You can toggle comments from me using the |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Pull-Request: golang#60868
This PR (HEAD: 8e3f637) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504335 to see it. Tip: You can toggle comments from me using the |
Message from Holger Freyther: Patch Set 6: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Bryan Mills: Patch Set 6: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
This PR (HEAD: 8e3f637) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/504335. Important tips:
|
Message from Holger Freyther: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Pull-Request: golang#60868
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes golang#60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Pull-Request: golang#60868
This PR (HEAD: 071e915) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/504335. Important tips:
|
Message from Cherry Mui: Patch Set 8: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
Message from Bryan Mills: Patch Set 8: Auto-Submit+1 Code-Review+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
In CL 475375 the Go command started to generate the "preferlinkext" token file for "strange/dangerous" compiler flags. This serves as a hint to the Go linker whether to call the external linker or not. Permit compiler flags used by bazel and bazelbuild/rules_go during compilation of cgo code to not prefer external linking. This restores the behavior of previous versions of Go. As a side effect, it also allows these flags to appear in #cgo directives in source code. We don't know of any cases where that is actually useful, but it appears to be harmless and simplifies the implementation of the internal linking change. Fixes #60865 Change-Id: I176a6a2a2cf36293dd9aed24be928f98fa2fb6d9 GitHub-Last-Rev: 071e915 GitHub-Pull-Request: #60868 Reviewed-on: https://go-review.googlesource.com/c/go/+/504335 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Auto-Submit: Bryan Mills <[email protected]>
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-09-25T18:00:58Z","revision":"273c8bd60d3c8d418bfa0a21823da7d8aa354379"} Please don’t reply on this GitHub thread. Visit golang.org/cl/504335. |
This PR is being closed because golang.org/cl/504335 has been merged. |
In CL 475375 the Go command started to generate the "preferlinkext"
token file for "strange/dangerous" compiler flags. This serves as a hint
to the Go linker whether to call the external linker or not.
Permit compiler flags used by bazel and bazelbuild/rules_go during
compilation of cgo code to not prefer external linking. This restores
the behavior of previous versions of Go.
As a side effect, it also allows these flags to appear
in #cgo directives in source code. We don't know of any cases
where that is actually useful, but it appears to be harmless
and simplifies the implementation of the internal linking change.
Fixes #60865