serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

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

Open ReillyBrogan opened 1 year ago

ReillyBrogan commented 1 year ago

This previously only impacted a handful of builds that manually set export CGO_CFLAGS=CFLAGS but now affects all CGO-using builds after https://github.com/serpent-os/boulder/pull/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"