mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.33k stars 1.53k forks source link

Objective-C doesn't recognize C2x or C18 #13202

Closed dreamer-coding-555 closed 1 week ago

dreamer-coding-555 commented 3 weeks ago

Describe the bug Seems Objective-C doesn't recognize C2x or C18 standards, and it works when I set the standard to C17 but this doesn't seem to help with my libraries which use C2x by default.

To Reproduce

project('objc test', 'objc', default_options: ['c_std=c2x'])

executable('pizza', 'main.m')

Expected behavior I expect it to compile even with this new standard of C, assuming Objective-C is still an extinction of C after all of the years it's been around.

system parameters

dreamer-coding-555 commented 1 week ago

Already have a working solution, and seems it is possible to configure subprojects to use a different standard.