From: Vinson Lee Date: Thu, 3 Jun 2010 07:03:18 +0000 (-0700) Subject: scons: Handle Python OSError exception when missing libdrm_radeon. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d062d2141618e5f5950410b4da84b4d62d43c1be;p=mesa.git 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. --- 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',