aboutsummaryrefslogtreecommitdiffstats
path: root/scons
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 /scons
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 'scons')
-rwxr-xr-xscons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index ee91ca44417..75c713d1ce3 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -139,6 +139,7 @@ def generate(env):
env['gcc'] = 'gcc' in os.path.basename(env['CC']).split('-')
env['msvc'] = env['CC'] == 'cl'
+ env['suncc'] = env['platform'] == 'sunos' and os.path.basename(env['CC']) == 'cc'
if env['msvc'] and env['toolchain'] == 'default' and env['machine'] == 'x86_64':
# MSVC x64 support is broken in earlier versions of scons
@@ -151,6 +152,7 @@ def generate(env):
ppc = env['machine'] == 'ppc'
gcc = env['gcc']
msvc = env['msvc']
+ suncc = env['suncc']
# Determine whether we are cross compiling; in particular, whether we need
# to compile code generators with a different compiler as the target code.