From: Zack Rusin Date: Tue, 9 Feb 2010 05:00:35 +0000 (-0500) Subject: scons: don't assume llvm is always present X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43f8a82a76599c10fa33ef35b6500924768de90c;p=mesa.git scons: don't assume llvm is always present --- diff --git a/SConstruct b/SConstruct index 76ab9025e23..fa67d14b795 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'):