summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPaul Ferrell <51765748+Paul-Ferrell@users.noreply.github.com>2022-05-04 06:21:25 -0600
committerGitHub <noreply@github.com>2022-05-04 14:21:25 +0200
commit2f6556ea825c8f89919c011e584ee45f842f8ee2 (patch)
treed8729bec77574dc2925cdbd0333d638afb264a81 /var
parentb4213b2c60dd9c824a0575d8ef32eaa6d0e8a727 (diff)
downloadspack-2f6556ea825c8f89919c011e584ee45f842f8ee2.tar.gz
spack-2f6556ea825c8f89919c011e584ee45f842f8ee2.tar.bz2
spack-2f6556ea825c8f89919c011e584ee45f842f8ee2.tar.xz
spack-2f6556ea825c8f89919c011e584ee45f842f8ee2.zip
mesa: intel needs c99 standard specified under intel. (#30334)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mesa/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py
index 02930274d5..2d10baab56 100644
--- a/var/spack/repos/builtin/packages/mesa/package.py
+++ b/var/spack/repos/builtin/packages/mesa/package.py
@@ -135,6 +135,12 @@ class Mesa(MesonPackage):
"_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 = [