summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-06-16 10:55:20 -0700
committerVinson Lee <[email protected]>2012-06-18 16:37:46 -0700
commitee99647e02fe5b947838cfea276f095775eb1537 (patch)
treeee9b742ec22e65d70bec7ce6e4c2494fc4775e1f /src
parent5b83bdc154ec8d607a4c4d96171d0128e51abaec (diff)
scons: Do not build svga if using Solaris Studio C compiler.
Solaris Studio C compiler does not support anonymous structs and anonymous unions. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/SConscript4
-rw-r--r--src/gallium/targets/dri-vmwgfx/SConscript4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/SConscript b/src/gallium/drivers/svga/SConscript
index 87903d89010..8ffeed56381 100644
--- a/src/gallium/drivers/svga/SConscript
+++ b/src/gallium/drivers/svga/SConscript
@@ -2,6 +2,10 @@ Import('*')
env = env.Clone()
+if env['suncc']:
+ print 'warning: not building svga'
+ Return()
+
if env['platform'] in ['linux']:
env.Append(CCFLAGS = ['-fvisibility=hidden'])
diff --git a/src/gallium/targets/dri-vmwgfx/SConscript b/src/gallium/targets/dri-vmwgfx/SConscript
index e758b493f89..0d19944f5c0 100644
--- a/src/gallium/targets/dri-vmwgfx/SConscript
+++ b/src/gallium/targets/dri-vmwgfx/SConscript
@@ -2,6 +2,10 @@ Import('*')
env = drienv.Clone()
+if env['suncc']:
+ print 'warning: not building dri-vmwgfx'
+ Return()
+
if env['build'] == 'release':
env.Append(CPPDEFINES = ['GALLIUM_RBUG'])
env.Prepend(LIBS = [rbug])