Commit d062d214 authored by Vinson Lee's avatar Vinson Lee

scons: Handle Python OSError exception when missing libdrm_radeon.

Instead of crashing when libdrm_radeon is unavailable, the SCons build
just does not build r600g.
parent 128190e4
......@@ -2,7 +2,11 @@ Import('*')
env = env.Clone()
env.ParseConfig('pkg-config --cflags libdrm_radeon')
try:
env.ParseConfig('pkg-config --cflags libdrm_radeon')
except OSError:
print 'warning: not building r600'
Return()
env.Append(CPPPATH = [
'#/include',
......
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