diff options
author | Matt Turner <mattst88@gmail.com> | 2014-09-21 18:14:01 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-09-25 13:52:55 -0700 |
commit | 976464c210816ff0c90e2e24e766dda81193fc79 (patch) | |
tree | 2d5bc60e59715fc38693c9b41eec6de930319e81 /scons | |
parent | 4a96df73e770bcca6396d3c8ffe3fd1693c73e50 (diff) | |
download | external_mesa3d-976464c210816ff0c90e2e24e766dda81193fc79.zip external_mesa3d-976464c210816ff0c90e2e24e766dda81193fc79.tar.gz external_mesa3d-976464c210816ff0c90e2e24e766dda81193fc79.tar.bz2 |
mesa: Replace a priori knowledge of gcc attributes with configure tests.
Note that I had to add support for testing the packed attribute to
m4/ax_gcc_func_attribute.m4.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> [C bits]
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index ef6df1a..dd5ca56 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -589,7 +589,13 @@ def generate(env): 'HAVE___BUILTIN_EXPECT', 'HAVE___BUILTIN_FFS', 'HAVE___BUILTIN_FFSLL', + 'HAVE_FUNC_ATTRIBUTE_FLATTEN', ] + if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('3'): + cppdefines += [ + 'HAVE_FUNC_ATTRIBUTE_FORMAT', + 'HAVE_FUNC_ATTRIBUTE_PACKED', + ] if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('3.4'): cppdefines += [ 'HAVE___BUILTIN_CTZ', |