mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 11:10:10 +01:00
scons: don't assume llvm is always present
This commit is contained in:
parent
85c7ec70ad
commit
43f8a82a76
1 changed files with 5 additions and 2 deletions
|
|
@ -170,7 +170,10 @@ 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')
|
||||||
|
if not env.has_key('LLVM_VERSION'):
|
||||||
|
drawllvm = False
|
||||||
|
else:
|
||||||
env.Append(CPPDEFINES = ['DRAW_LLVM'])
|
env.Append(CPPDEFINES = ['DRAW_LLVM'])
|
||||||
|
|
||||||
# libGL
|
# libGL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue