Skip to content
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

cmd/cgo: only create _cgo_flags for -compiler=gccgo #60642

Closed
ianlancetaylor opened this issue Jun 6, 2023 · 1 comment
Closed

cmd/cgo: only create _cgo_flags for -compiler=gccgo #60642

ianlancetaylor opened this issue Jun 6, 2023 · 1 comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. ToolSpeed
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

Currently cmd/cgo creates a _cgo_flags file every time it is run. However, that file is only used when cmd/go is invoked with -compiler=gccgo. In the default case we should stop generating _cgo_flags, as it is wasted effort.

@ianlancetaylor ianlancetaylor added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 6, 2023
@ianlancetaylor ianlancetaylor added this to the Go1.22 milestone Jun 6, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 6, 2023
@gopherbot
Copy link

Change https://go.dev/cl/524556 mentions this issue: cmd/cgo: only write _cgo_flags for gccgo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. ToolSpeed
Projects
None yet
Development

No branches or pull requests

3 participants