summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-02-09 00:00:35 -0500
committerZack Rusin <zackr@vmware.com>2010-02-09 00:00:35 -0500
commit43f8a82a76599c10fa33ef35b6500924768de90c (patch)
tree2854cbbaf84406098ec3d5ae1d99bd081b6c2bc0 /SConstruct
parent85c7ec70ad41c8ada75a4cbace83d16815d3e2c5 (diff)
scons: don't assume llvm is always present
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
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'):