build: Use cc.get_supported_arguments() instead of open-coding
I added support to Meson for cc.get_supported_arguments() when I was typing out the initial build because I didn't like the open-coding, then completely forgot to update Weston when it got merged.
Signed-off-by: Daniel Stone daniels@collabora.com