From 583e41855b0ae6b9a102b39ac62238472f4cf05a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 1 Nov 2010 15:27:34 +0000 Subject: [PATCH] scons: Disable python state tracker when swig is not present. --- src/gallium/state_trackers/python/SConscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/python/SConscript b/src/gallium/state_trackers/python/SConscript index 5cb7960f9b5..b8371865a61 100644 --- a/src/gallium/state_trackers/python/SConscript +++ b/src/gallium/state_trackers/python/SConscript @@ -7,6 +7,9 @@ if env['toolchain'] == 'crossmingw': # Cross-compilation not supported Return() +if not env.Detect(['swig']): + Return() + env = env.Clone() env.Tool('python') -- 2.30.2