OSDN Git Service

scons: Update for builtin_stubs.cpp
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 2 Nov 2012 09:42:13 +0000 (09:42 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 2 Nov 2012 09:43:42 +0000 (09:43 +0000)
Note this by itself is not enough to fix scons build -- it will fail
until you remove:

   rm -rf build/*/glsl/builtin_compiler

because that node was a filei before, but it will be now a directory.

This also means that bisecting across this change will require wiping
the build directory..

src/glsl/SConscript

index 6314c75..89014ee 100644 (file)
@@ -71,9 +71,10 @@ else:
     compiler_objs += mesa_objs
 
     builtin_compiler = env.Program(
-        target = 'builtin_compiler',
-        source = compiler_objs + glsl_sources + \
-            source_lists['BUILTIN_COMPILER_CXX_FILES'],
+        target = 'builtin_compiler/builtin_compiler',
+        source = compiler_objs + glsl_sources + [
+            'builtin_compiler/builtin_stubs.cpp',
+        ]
     )
 
     # SCons builtin dependency scanner doesn't detect that glsl_lexer.ll