scons: Disable python state tracker when swig is not present.
This commit is contained in:
parent
0fd41d236f
commit
583e41855b
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue