summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index c0f6f6c91ca..ea212d15a95 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -491,8 +491,11 @@ def generate(env):
'-Werror=missing-prototypes',
'-Werror=return-type',
'-Werror=incompatible-pointer-types',
- '-std=gnu99',
]
+ if platform == 'darwin' and host_platform.mac_ver()[0] >= '10.15':
+ cflags += ['-std=gnu11']
+ else:
+ cflags += ['-std=gnu99']
if icc:
cflags += [
'-std=gnu99',