Commit 43f8a82a authored by Zack Rusin's avatar Zack Rusin
Browse files

scons: don't assume llvm is always present

parent 85c7ec70
...@@ -170,8 +170,11 @@ if dri: ...@@ -170,8 +170,11 @@ if dri:
if drawllvm: if drawllvm:
# See also http://www.scons.org/wiki/UsingPkgConfig # See also http://www.scons.org/wiki/UsingPkgConfig
# currently --ldflags --libsdisabled since the driver will force the correct linkage # currently --ldflags --libsdisabled since the driver will force the correct linkage
env.ParseConfig('llvm-config --cflags backend bitreader engine instrumentation interpreter ipo') env.Tool('llvm')
env.Append(CPPDEFINES = ['DRAW_LLVM']) if not env.has_key('LLVM_VERSION'):
drawllvm = False
else:
env.Append(CPPDEFINES = ['DRAW_LLVM'])
# libGL # libGL
if platform in ('linux', 'freebsd', 'darwin'): if platform in ('linux', 'freebsd', 'darwin'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment