mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
4a26bdad5d
The `gogio` tool adds the `-fmodules -fobjc-arc` flags to the Cgo C flags. Unfortunately, that masks problems where Cgo packages accidentally didn't have the flags in their #cgo directives such as package log. Move the flags so they're only explicitly mentioned when `gogio` invokes the host compiler to build the `main.m` shim. Fix package log to include the missing flags. While we're here, silence OpenGL ES deprecation warnings on iOS, just as we do for macOS. The warnings are normally not visible because the gogio tool suppress output from the go tool. Signed-off-by: Elias Naur <mail@eliasnaur.com>