summaryrefslogtreecommitdiffstats
path: root/src/gallium/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-04-30 07:47:01 +0100
committerJosé Fonseca <[email protected]>2012-04-30 07:47:01 +0100
commit4c23acb269b3d30b9840fcb36edf01410b2f9213 (patch)
treed9e33b5303f485b4d07dbcec99317f8611d2202b /src/gallium/SConscript
parent4c15a77f27204620ed35d97d75e521ca982e1cc5 (diff)
scons: Fix build without llvm.
radeonsi depends on llvm, so it must be disabled if llvm support is not enabled.
Diffstat (limited to 'src/gallium/SConscript')
-rw-r--r--src/gallium/SConscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/SConscript b/src/gallium/SConscript
index da2e4dd5ded..962c1545f64 100644
--- a/src/gallium/SConscript
+++ b/src/gallium/SConscript
@@ -33,8 +33,11 @@ if env['drm']:
SConscript([
'drivers/r300/SConscript',
'drivers/r600/SConscript',
- 'drivers/radeonsi/SConscript',
])
+ if env['llvm']:
+ SConscript([
+ 'drivers/radeonsi/SConscript',
+ ])
# XXX: nouveau drivers have a tight dependency on libdrm, so to enable
# we need some version logic before we enable them. Also, ATM there is
# no nouveau target in scons
@@ -153,8 +156,11 @@ if not env['embedded']:
SConscript([
'targets/dri-r300/SConscript',
'targets/dri-r600/SConscript',
- 'targets/dri-radeonsi/SConscript',
])
+ if env['llvm']:
+ SConscript([
+ 'targets/dri-radeonsi/SConscript',
+ ])
if env['xorg'] and env['drm']:
SConscript([