summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2016-04-18 11:47:07 +0100
committerJose Fonseca <[email protected]>2016-04-26 17:17:00 +0100
commit9a25c8af1b7fad0e7b3f3f3b4cbf6ae6e32e0e4d (patch)
treee10e148b80cb33316990f97f4bf4f81bd0264df3 /src/gallium/winsys
parentc068610a7df370af94fd6177598a35c4425a75f9 (diff)
scons: Whenever possible decide what to do based on platform and not compiler.
Because compilers like GCC and Clang are effectively available everywhere so their presence/absence is seldom conclusive. Furthermore, all compilers we use now have stdint.h. Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/svga/drm/SConscript10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/winsys/svga/drm/SConscript b/src/gallium/winsys/svga/drm/SConscript
index 25850531d31..2cb11e610df 100644
--- a/src/gallium/winsys/svga/drm/SConscript
+++ b/src/gallium/winsys/svga/drm/SConscript
@@ -4,12 +4,10 @@ env = env.Clone()
env.PkgUseModules('DRM')
-if env['gcc'] or env['clang'] or env['icc']:
- env.Append(CCFLAGS = ['-fvisibility=hidden'])
- env.Append(CPPDEFINES = [
- 'HAVE_STDINT_H',
- '-D_FILE_OFFSET_BITS=64',
- ])
+env.Append(CPPDEFINES = [
+ 'HAVE_STDINT_H',
+ '-D_FILE_OFFSET_BITS=64',
+])
env.Prepend(CPPPATH = [
'#/src/gallium/drivers/svga',