From d062d2141618e5f5950410b4da84b4d62d43c1be Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 3 Jun 2010 00:03:18 -0700 Subject: [PATCH] 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. --- src/gallium/drivers/r600/SConscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/SConscript b/src/gallium/drivers/r600/SConscript index 8c9edd897b2..26e2f1941cc 100644 --- a/src/gallium/drivers/r600/SConscript +++ b/src/gallium/drivers/r600/SConscript @@ -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', -- 2.30.2