mesa: intel needs c99 standard specified under intel. (#30334)

This commit is contained in:
Paul Ferrell 2022-05-04 06:21:25 -06:00 committed by GitHub
parent b4213b2c60
commit 2f6556ea82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,12 @@ def patch(self):
"_llvm_method = 'config-tool'",
"meson.build")
def flag_handler(self, name, flags):
if self.spec.satisfies('%intel'):
if name == 'cflags':
flags.append('-std=c99')
return super(Mesa, self).flag_handler(name, flags)
def meson_args(self):
spec = self.spec
args = [