From 43f8a82a76599c10fa33ef35b6500924768de90c Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Tue, 9 Feb 2010 00:00:35 -0500 Subject: scons: don't assume llvm is always present --- SConstruct | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 76ab9025e2..fa67d14b79 100644 --- a/SConstruct +++ b/SConstruct @@ -170,8 +170,11 @@ if dri: if drawllvm: # See also http://www.scons.org/wiki/UsingPkgConfig # currently --ldflags --libsdisabled since the driver will force the correct linkage - env.ParseConfig('llvm-config --cflags backend bitreader engine instrumentation interpreter ipo') - env.Append(CPPDEFINES = ['DRAW_LLVM']) + env.Tool('llvm') + if not env.has_key('LLVM_VERSION'): + drawllvm = False + else: + env.Append(CPPDEFINES = ['DRAW_LLVM']) # libGL if platform in ('linux', 'freebsd', 'darwin'): -- cgit v1.2.3