scons: Fix build without llvm.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 30 Apr 2012 06:47:01 +0000 (07:47 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 30 Apr 2012 06:47:01 +0000 (07:47 +0100)
radeonsi depends on llvm, so it must be disabled if llvm support is not enabled.

src/gallium/SConscript

index da2e4dd5dedf5bedd11e1e13a6c1d76e80a74e9c..962c1545f6432285d343f798a2713678451c82cc 100644 (file)
@@ -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([