Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Golang builds that use CGO fail with "argument unused during compilation" #74

Open
ReillyBrogan opened this issue Mar 22, 2023 · 0 comments
Labels
type: bug Something isn't working.

Comments

@ReillyBrogan
Copy link

This previously only impacted a handful of builds that manually set export CGO_CFLAGS=CFLAGS but now affects all CGO-using builds after #56.

Said builds exit with the following error:

clang-15: error: argument unused during compilation: '-feliminate-unused-debug-types' [-Werror,-Wunused-command-line-argument]

For now I have added the following to impacted builds to fix them:

export CGO_CFLAGS="${CGO_FLAGS} -Wno-error=unused-command-line-argument"
@livingsilver94 livingsilver94 added the type: bug Something isn't working. label Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants