LIJI32 / SameBoy

Game Boy and Game Boy Color emulator written in C
https://sameboy.github.io/
Other
1.58k stars 206 forks source link

Build fails on Linux ARM #611

Closed Mailaender closed 2 months ago

Mailaender commented 2 months ago

clang-16: error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]

https://buildbot.flathub.org/#/builders/42/builds/10520/steps/7/logs/stdio

LIJI32 commented 2 months ago

-fstack-clash-protection isn't a flag coming from SameBoy, it seems to be coming from a script invoking SameBoy's Makefile. I'm not sure where exactly it comes from, but adding -Wno-unused-command-line-argument right before it should solve it. (Alternatively, you could remove it altogether if you care about speed more than security mitigations)

Mailaender commented 2 months ago

You are correct. I can fix this without a patch.