diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/SConscript | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_debug.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index b880ca0d68e..97af1b95c34 100644 --- a/src/gallium/drivers/llvmpipe/SConscript +++ b/src/gallium/drivers/llvmpipe/SConscript @@ -2,6 +2,7 @@ Import('*') env = env.Clone() +env.Tool('udis86') env.ParseConfig('llvm-config --cppflags') llvmpipe = env.ConvenienceLibrary( @@ -57,7 +58,6 @@ llvmpipe = env.ConvenienceLibrary( env = env.Clone() -env.Prepend(LIBS = 'udis86') env['LINK'] = env['CXX'] env.ParseConfig('llvm-config --libs jit interpreter nativecodegen bitwriter') env.Prepend(LIBS = [llvmpipe] + auxiliaries) diff --git a/src/gallium/drivers/llvmpipe/lp_bld_debug.c b/src/gallium/drivers/llvmpipe/lp_bld_debug.c index f8da1c9f8e7..ccbafca8b86 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_debug.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_debug.c @@ -26,7 +26,9 @@ **************************************************************************/ +#ifdef HAVE_UDIS86 #include <udis86.h> +#endif #include "util/u_debug.h" #include "lp_bld_debug.h" @@ -35,6 +37,7 @@ void lp_disassemble(const void* func) { +#ifdef HAVE_UDIS86 ud_t ud_obj; ud_init(&ud_obj); @@ -69,4 +72,7 @@ lp_disassemble(const void* func) break; } debug_printf("\n"); +#else + (void)func; +#endif } |